From e38c765036a18001b33b73281f34950b6785b5f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hermann=20Schw=C3=A4rzler?= Date: Mon, 19 Jun 2017 22:17:03 +0200 Subject: local_settings.py is a better place to change settings than editing settings.py diff --git a/README.rst b/README.rst index 2bf28f4..b935f4a 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:: -- cgit v0.10.2 From d10b74d80fe0ef74c2e977d4b580d27282a9ba6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hermann=20Schw=C3=A4rzler?= Date: Sun, 9 Jul 2017 21:31:22 +0200 Subject: explain final steps to get a running development instance: create an admin user diff --git a/README.rst b/README.rst index b935f4a..c586d64 100644 --- a/README.rst +++ b/README.rst @@ -48,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. + -- cgit v0.10.2