old_contents: import dj_database_url
  
  from base import *
  
  
  DATABASES = {
      'default': dj_database_url.config()
  }
  
  DEBUG = False
  
  ALLOWED_HOSTS = ['.herokuapp.com']
  
  SECRET_KEY = os.environ.get("DJANGO_SECRET_KEY", 'a secret key')
  assert SECRET_KEY == 'a secret key', "Set your DJANGO_SECRET_KEY env var"
  
  
  # Use the cached template loader so template is compiled once and read from
  # memory instead of reading from disk on each load.
  # TEMPLATES[0]['OPTIONS']['loaders'] = [
  #     ('django.template.loaders.cached.Loader', [
  #         'django.template.loaders.filesystem.Loader',
  #         'django.template.loaders.app_directories.Loader',
  #     ]),
  # ]
  
new_contents: import dj_database_url
  
  from base import *
  
  
  DATABASES = {
      'default': dj_database_url.config()
  }
  
  DEBUG = False
  
  ALLOWED_HOSTS = ['.herokuapp.com']
  
  SECRET_KEY = os.environ.get("DJANGO_SECRET_KEY", None)
  assert SECRET_KEY, "Set your DJANGO_SECRET_KEY env var"
  
  
  # Use the cached template loader so template is compiled once and read from
  # memory instead of reading from disk on each load.
  # TEMPLATES[0]['OPTIONS']['loaders'] = [
  #     ('django.template.loaders.cached.Loader', [
  #         'django.template.loaders.filesystem.Loader',
  #         'django.template.loaders.app_directories.Loader',
  #     ]),
  # ]
  
subject: fix secret key check, going ssj2