1 parent 122e54c commit 4db4245Copy full SHA for 4db4245
1 file changed
gregoplus/settings.py
@@ -28,7 +28,8 @@
28
# SECURITY WARNING: don't run with debug turned on in production!
29
DEBUG = (os.environ.get('DEBUG') == 'true')
30
31
-ALLOWED_HOSTS = []
+hosts = os.environ.get('ALLOWED_HOSTS')
32
+ALLOWED_HOSTS = hosts.split(' ') if hosts else []
33
34
35
# Application definition
0 commit comments