Settings¶
Environment Variable Overview¶
Most settings are defined by environment variables. They may be set in
an .env file in the project’s root directory to adjust various
aspects of the deployment.
See their usage details below.
General App Settings¶
These environment variables are read by the Django app and thus have a
corresponding value in Django accessible via django.conf.settings.
Environment Variable |
Django Setting |
Production Default |
Development Default |
|---|---|---|---|
|
|
|
|
|
|||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||
|
|||
|
|
||
|
|
|
|
|
|||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Email Settings¶
Environment Variable |
Django Setting |
Production Default |
Development Default |
|---|---|---|---|
|
|||
|
|||
|
|
||
|
|||
|
|
||
|
|
||
|
|
Database Settings¶
Environment Variable |
Default |
|---|---|
|
|
|
|
Third-party Authentication¶
Environment Variable |
Django Setting |
Production Default |
Development Default |
|---|---|---|---|
Environment Variable Usage¶
Detailed descriptions of each environment variable and their intended usage.
- ACCOUNT_EMAIL_VERIFICATION¶
Options |
|
|---|---|
|
User’s MAY optionally provide an email at signup which may be used for password resets and other notifications. |
|
User’s MUST provide an email |
|
User’s CANNOT provide an email. This option usually corresponds with an alternative third-party authentication option. Otherwise user’s won’t be able to make accounts at all. |
- DATABASE_URL¶
By default, the database URL used by the Django application to communicate with the Postgres database is generated from the Database Settings. This variable will override that generated database URL.
- DJANGOADMIN_FORCE_ALLAUTH¶
TODO
- DJANGO_ACCOUNT_ALLOW_REGISTRATION¶
TODO
- DJANGO_ADMINS¶
TODO
- DJANGO_ADMIN_URL¶
TODO
- DJANGO_ALLOWED_HOSTS¶
TODO
- DJANGO_DEBUG_TOOLBAR¶
TODO
- DJANGO_DEBUG¶
TODO
- DJANGO_DEFAULT_FROM_EMAIL¶
TODO
- DJANGO_DISCORD_CLIENT_ID¶
TODO
- DJANGO_DISCORD_CLIENT_SECRET¶
TODO
- DJANGO_DISCORD_PUBLIC_KEY¶
TODO
- DJANGO_EMAIL_BACKEND¶
TODO
- DJANGO_EMAIL_HOST_PASSWORD¶
TODO
- DJANGO_EMAIL_HOST_USER¶
TODO
- DJANGO_EMAIL_HOST¶
TODO
- DJANGO_EMAIL_PORT¶
TODO
- DJANGO_HOMEPAGE_LINKS¶
TODO
- DJANGO_SECURE_CONTENT_TYPE_NOSNIFF¶
TODO
- DJANGO_SECURE_HSTS_INCLUDE_SUBDOMAINS¶
TODO
- DJANGO_SECURE_HSTS_PRELOAD¶
TODO
- DJANGO_SECURE_SSL_REDIRECT¶
TODO
- DJANGO_SERVER_EMAIL¶
TODO
- DJANGO_SETTINGS_MODULE¶
TODO
- DJANGO_SILKY_PYTHON_PROFILER_BINARY¶
TODO
- DJANGO_SILKY_PYTHON_PROFILER¶
TODO
- DJANGO_SOCIAL_LOGIN_ENABLED¶
TODO
- DJANGO_TITLE¶
TODO
- POSTGRES_DB¶
TODO
- POSTGRES_PASSWORD¶
TODO
- POSTGRES_PORT¶
TODO
- POSTGRES_USER¶
TODO
- USE_DOCKER¶
TODO