[TODO: Description of the project]
- virtualenv
- bower
- A postgresql database is recommended
- nginx as webserver is recommended
Copy settings/preconfig.py.template to settings/preconfig.py and configure it according to your setup.
bower install
virtualenv -p python3 env
source env/bin/activate
pip install -r requirements.txt
./manage.py create_plz_mapping
./manage.py migrate
with HAVE_ADMIN:
./manage.py createsuperuser
Server for local testing:
./manage.py runserver
Copy the static file over to the location specified in preconfig.py:
./manage.py collectstatic --noinput
uwsgi and nginx are recommended. Be sure to turn off debug mode.
The top-most template is base.html
. It is extended by standalone.html
and embed.html
.
The templates for the non-interactive pages only extend standalone.html
. The template for the pages used for the form do either extend standalone.html
or embed.html
, depending of the value of the template variable is_embedded
.
To embed a page (e.g. the main form) in a different page via <iframe>
, append ?embed
to the url. This will only affect pages related to the form.
(c) Copyright 2015 by Konstantin Schütze and Thomas Tanner.
Licensed under GNU Affero General Public License 3.0. See the file LICENSE for details.