Skip to content

Commit d9a8c2c

Browse files
committed
Moved 'ALLOWED_HOSTS' setting to environment variable.
1 parent 8c3586a commit d9a8c2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

todo_list/settings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
# SECURITY WARNING: don't run with debug turned on in production!
4747
DEBUG = True
4848

49-
ALLOWED_HOSTS = []
49+
ALLOWED_HOSTS = os.environ["ALLOWED_HOSTS"].split(" ")
5050

5151

5252
# Application definition

0 commit comments

Comments
 (0)