diff --git a/README.rst b/README.rst index 7dc2328d569dca03473c69e3f33b02439ed2ca87..b463b08c11b6ab067e48284556ee5f5139c8599e 100644 --- a/README.rst +++ b/README.rst @@ -44,7 +44,7 @@ Change into the base directory of this software and install the project dependen (python)$ pip3 install -r requirements.txt -Setting up the database +Setting up the configuration ----------------------- By default the project is set up to run on a SQLite database. @@ -55,15 +55,6 @@ Create a file pv/local_settings.py and add at least the following line:: (obviously replacing "secret key" with a key of your choice). -Then run:: - - (python)$ python manage.py migrate - (python)$ python manage.py loaddata program/fixtures/*.yaml - -Open pv/local_settings.py again and add the line:: - - USE_TZ = False - Setting up PostgreSQL ---------------- @@ -72,16 +63,16 @@ We recommend using PostgreSQL in order to be able to use the collation utf8mb64_ To use PostgreSQL, add the following to your local_settings.py (before migrating) and add your credentials:: -DATABASES = { - 'default': { - 'ENGINE': 'django.db.backends.postgresql', - 'NAME': '', - 'USER': '', - 'PASSWORD': '', - 'HOST': 'localhost', - 'PORT': '5432' + DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.postgresql', + 'NAME': '', + 'USER': '', + 'PASSWORD': '', + 'HOST': 'localhost', + 'PORT': '5432' + } } -} Setting up MySQL @@ -111,6 +102,20 @@ Create a file pv/mysql.cnf and give your MySQL credentials:: default-character-set = utf8 +Setting up the database +---------------- + +Then run:: + + (python)$ python manage.py migrate + (python)$ python manage.py loaddata program/fixtures/*.yaml + +Open pv/local_settings.py again and add the line:: + + USE_TZ = False + + + Running a web server --------------------