heroku.py 690 B

123456789101112131415161718192021222324
  1. import dj_database_url
  2. from .base import *
  3. DEBUG = True
  4. # Accept all hostnames, since we don't know in advance which hostname will be used for any given Heroku instance.
  5. # IMPORTANT: Set this to a real hostname when using this in production!
  6. # See https://docs.djangoproject.com/en/1.10/ref/settings/#allowed-hosts
  7. ALLOWED_HOSTS = ['*', 'wagtailbakerydemo.herokuapp.com']
  8. EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
  9. # BASE_URL required for notification emails
  10. BASE_URL = 'http://localhost:8000'
  11. DATABASES = {'default': dj_database_url.config(default='postgres://postgres@localhost:5432/wagtaildemo')}
  12. try:
  13. from .local import *
  14. except ImportError:
  15. pass