Skip to content

Commit 172b0b2

Browse files
committed
upate
1 parent b0edfc0 commit 172b0b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

alloexpertsbackend/settings.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@
3333
# SECURITY WARNING: keep the secret key used in production secret!
3434
SECRET_KEY = 'django-insecure-svz0_*_q=m45w(i$$oaka2j92r6pmr58uir7ko&)7fv@+$i+0g'
3535

36-
# SECURITY WARNING: don't run with debug turned on in production!
37-
DEBUG = os.getenv('DEBUG', 'True') == 'True'
38-
3936
ALLOWED_HOSTS = ['34.207.159.186','api.allo.expert', 'ec2-34-207-159-186.compute-1.amazonaws.com', 'localhost', '127.0.0.1', '0.0.0.0']
4037

38+
# SECURITY WARNING: don't run with debug turned on in production!
39+
DEBUG = config('DEBUG', default=False, cast=bool)
40+
4141
# Application definition
4242

4343
INSTALLED_APPS = [

0 commit comments

Comments
 (0)