Skip to content

Commit 6b1f8c5

Browse files
author
Mario Colombo
committed
standardize DEBUG env var
1 parent 2ce534f commit 6b1f8c5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Here is the official django CMS repository: [https://github.com/django-cms/djang
5555
Note that this is just a demo project to get you started. If you want a full production ready site with all the bells and whistles we recommend you have a look at https://github.com/django-cms/djangocms-template instead.
5656

5757
#### Env variables
58-
- to deploy this project in testing modus (recommended) set the environment variable `DJANGO_DEBUG` to `True` in your hosting environment.
58+
- to deploy this project in testing modus (recommended) set the environment variable `DEBUG` to `True` in your hosting environment.
5959
- For production environment (if `DEBUG` is false) django requires you to whitelist the domain. Set the env var `DOMAIN` to the host, i.e. `www.domain.com` or `*.domain.com`.
6060
- If you want the media hosted on S3 set the `DEFAULT_FILE_STORAGE` variable accordingly.
6161

backend/settings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
SECRET_KEY = os.environ.get('SECRET_KEY', '<a string of random characters>')
1212

1313
# SECURITY WARNING: don't run with debug turned on in production!
14-
DEBUG = os.environ.get('DJANGO_DEBUG') == "True"
14+
DEBUG = os.environ.get('DEBUG') == "True"
1515

1616
ALLOWED_HOSTS = os.environ.get('DOMAIN')
1717
if DEBUG:

0 commit comments

Comments
 (0)