summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2017-07-09 20:56:31 (GMT)
committerGitHub <noreply@github.com>2017-07-09 20:56:31 (GMT)
commit48e27824d3d34f782386595188e726e423327142 (patch)
treec2e5a69ee142866bb6235c6bf750545db77f067e
parent003145919c386ec5ed9e2a090a12059422fdb67b (diff)
parentcb142bb37ac70ffc93f442d928f1929e01c5b86c (diff)
Merge pull request #7 from hermannschwaerzler/master
More changes/additions to README.rst to explain how to get a working development installation.
-rw-r--r--README.rst19
1 files changed, 16 insertions, 3 deletions
diff --git a/README.rst b/README.rst
index 2bf28f4..c586d64 100644
--- a/README.rst
+++ b/README.rst
@@ -36,9 +36,11 @@ Setting up the database
By default the project is set up to run on a SQLite database.
-First edit pv/settings.py and change the line
- SECRET_KEY = ''
-such that there is a value for SECRET_KEY.
+Create a file pv/local_settings.py and add at least the line
+
+ SECRET_KEY = 'secret key'
+
+(obviously replacing "secret key" with a key of you choice).
Then run::
@@ -46,9 +48,20 @@ Then run::
(python)$ python manage.py loaddata program/fixtures/*.yaml
+Adding an admin user
+--------------------
+
+In order to create an admin user (which you will need to login to the webinterface after the next step) run::
+
+ (python)$ python manage.py createsuperuser
+
+
Running a web server
--------------------
In development you should run::
(python)$ python manage.py runserver
+
+After this you can open http://127.0.0.1:8000/admin in your browser and log in with the admin credential you created previously.
+