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 Pythonlogging
module log level - one ofDEBUG
,INFO
,WARN
,ERROR
orCRITICAL
. 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, whenDEBUG
is not set. Optional, defaults to thepythondiscord.com
family 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 collectstatic
collects static files. Optional, defaults to/var/www/pythondiscord.com
.