Commit 4e09006f authored by Philipp Sebastian Sommer's avatar Philipp Sebastian Sommer
Browse files

add note about sqlsequencereset

closes #49
parent b9529244
Pipeline #101486 passed with stage
in 1 minute and 22 seconds
......@@ -42,18 +42,26 @@ Quick start for development
Where ``$DBPW`` needs to be replaced by the password of the ``SQL_CLM_READ``
user database user (see the corresponding entry in ``HCDC_Passwords.kdbx``).
8. Create a superuser via::
8. `clm2django` uses the IDs from the old database whenever possible. When using
postgres, this causes problems because the available IDs are managed through
a ``SERIAL`` column (see
`the docs on manually specifying values of auto incrementing primary keys`_).
You need to use the sqlsequencereset_ command to reset these counters::
python manage.py sqlsequencereset clm_members academic_community clm_activities clm_topics | psql django_clm_community -h ...
9. Create a superuser via::
python manage.py createsuperuser
9. Populate the database with dummy users (note that this is for development
purposes only!)::
10. Populate the database with dummy users (note that this is for development
purposes only!)::
python manage.py makedummyusers -n "Beate Geyer" "Burkhardt Rockel"
python manage.py makedummyusers -n "Beate Geyer" "Burkhardt Rockel"
The password for these user accounts will be ``admin``.
The password for these user accounts will be ``admin``.
10. Run the local development server via::
11. Run the local development server via::
python manage.py runserver
......@@ -62,6 +70,8 @@ Quick start for development
.. _django-reversion: https://django-reversion.readthedocs.io
.. _the docs on manually specifying values of auto incrementing primary keys: https://docs.djangoproject.com/en/3.1/ref/databases/#manually-specifying-values-of-auto-incrementing-primary-keys)
.. _sqlsequencereset: https://docs.djangoproject.com/en/3.1/ref/django-admin/#django-admin-sqlsequencereset
Building the docs
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment