Skip to content
Snippets Groups Projects
Commit ba140e6d authored by Ingo Leindecker's avatar Ingo Leindecker
Browse files

Fixed readme.

parent 291e6c90
No related branches found
No related tags found
No related merge requests found
......@@ -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
--------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment