Explorar el Código

updated settings

sleepytaco hace 3 años
padre
commit
2b1ca709e4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      UnTube/production.py

+ 1 - 1
UnTube/production.py

@@ -11,7 +11,7 @@ SECURE_SSL_REDIRECT = True
 # ALLOWED_HOSTS = [os.environ['WEBSITE_HOSTNAME'], '127.0.0.1'] if 'WEBSITE_HOSTNAME' in os.environ else []
 
 # configure the domain name using the environment variable found on pythonanywhere
-ALLOWED_HOSTS = ['bakaabu.pythonanywhere.com'] if 'PYTHONANYWHERE_SITE' in os.environ else []
+ALLOWED_HOSTS = ['bakaabu.pythonanywhere.com', '127.0.0.1'] if 'PYTHONANYWHERE_SITE' in os.environ else []
 SITE_ID = 8
 
 # WhiteNoise configuration