The website is configured through the following environment variables:
-
DATABASE_URL: A string specifying the PostgreSQL database to connect to, in the formpostgresql://user:password@host/database, such aspostgresql://joethedestroyer:ihavemnesia33@localhost/pysite_dev -
DEBUG: Controls Django's internal debugging setup. Enable this when you're developing locally. Optional, defaults toFalse. -
LOG_LEVEL: Any valid Pythonloggingmodule log level - one ofDEBUG,INFO,WARN,ERRORorCRITICAL. When using debug mode, this defaults toINFO. When testing, defaults toERROR. Otherwise, defaults toWARN.
-
ALLOWED_HOSTS: A comma-separated lists of alternative hosts to allow to host the website on, whenDEBUGis not set. Optional, defaults to thepythondiscord.comfamily of domains. -
SECRET_KEY: The secret key used in various parts of Django. Keep this secret as the name suggests! This is managed for you in debug setups. -
STATIC_ROOT: The root in whichpython manage.py collectstaticcollects static files. Optional, defaults to/var/www/pythondiscord.com.