Explorar o código

tweak for heroku

David Ray %!s(int64=8) %!d(string=hai) anos
pai
achega
9fa96f61c2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      bakerydemo/settings/heroku.py

+ 1 - 1
bakerydemo/settings/heroku.py

@@ -8,7 +8,7 @@ DEBUG = True
 # Accept all hostnames, since we don't know in advance which hostname will be used for any given Heroku instance.
 # IMPORTANT: Set this to a real hostname when using this in production!
 # See https://docs.djangoproject.com/en/1.10/ref/settings/#allowed-hosts
-ALLOWED_HOSTS = ['*']
+ALLOWED_HOSTS = ['*', 'wagtailbakerydemo.herokuapp.com']
 
 EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'