Skip to content

Commit cb4adec

Browse files
committed
Add parameters for deployment
1 parent e76efa6 commit cb4adec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

netstests/settings.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@
3030
# See https://docs.djangoproject.com/en/5.0/howto/deployment/checklist/
3131

3232
# SECURITY WARNING: keep the secret key used in production secret!
33-
SECRET_KEY = "django-insecure-s_8w8pic*0p+&k@onsm@w_ifx_h15%&f%xdbp-vj3@cl775d-6"
33+
SECRET_KEY = env.str("SECRET_KEY")
3434

3535
# SECURITY WARNING: don't run with debug turned on in production!
36-
DEBUG = True
36+
DEBUG:bool = env.bool("DEBUG")
3737

38-
ALLOWED_HOSTS = []
38+
ALLOWED_HOSTS = env.list("ALLOWED_HOSTS")
3939

4040
# Application definition
4141

0 commit comments

Comments
 (0)