Verwaltungssoftware für die Erstsemesterfahrt
python3
, python3-pip
and virtualenv
pyofahrt
)/srv/pyofahrt
)pyofahrt/settings_secrets.py
(ideally from pyofahrt/settings_secrets.template.txt
) and fill it with the necessary credentialsvirtualenv -p python3 venv
)uwsgi
, create an ini file under /etc/uwsgi
with a proper configuration and configure the webserver to use mod-proxy-uwsgi
to make the application accessible. The webserver should also serve the static files. Make sure the application server (uwsgi) sets the proper environment variable for production settings (DJANGO_SETTINGS_MODULE=pyofahrt.settings_production
).When manually executing manage.py
commands in production, do not forget to either pass the --settings pyofahrt.settings_production
flag oder set it as an environment variable like export DJANGO_SETTINGS_MODULE=pyofahrt.settings_production
.
To update an instance of pyofahrt, one can use the included update script script/update
.
For production instances, one should use something like sudo -u pyofahrt script/update --prod
.