# Staging environment settings for us_ignite
# Production settings for us_ignite
from us_ignite.settings import *

SITE_URL = 'http://us-ignite.herokuapp.com'

# Basic authentication for Heroku
BASIC_WWW_AUTHENTICATION_USERNAME = ""
BASIC_WWW_AUTHENTICATION_PASSWORD = ""
BASIC_WWW_AUTHENTICATION = False

@@ -42,76 +42,296 @@
 ite%0A
-# Production settings for us_ignite%0Afrom us_ignite.settings import *
+import datetime%0Aimport os%0Aimport urlparse%0A%0Afrom us_ignite.settings import *%0A%0A# Sensitive values are saved as env variables:%0Aenv = os.getenv%0APROJECT_ROOT = os.path.dirname(os.path.realpath(__file__))%0A# settings is one directory up now%0Ahere = lambda *x: os.path.join(PROJECT_ROOT, '..', *x)
 %0A%0ASI
@@ -344,16 +344,17 @@
  = 'http
+s
 ://us-ig
@@ -357,16 +357,24 @@
 s-ignite
+-staging
 .herokua
@@ -386,149 +386,1961 @@
 m'%0A%0A
-# Basic authentication for Heroku%0ABASIC_WWW_AUTHENTICATION_USERNAME = %22%22%0ABASIC_WWW_AUTHENTICATION_PASSWORD = %22%22%0ABASIC_WWW_AUTHENTICATION = False
+ALLOWED_HOSTS = %5B%0A    'us-ignite-staging.herokuapp.com',%0A%5D%0A%0A# HTTPS configuration:%0ASESSION_COOKIE_SECURE = True%0ASECURE_SSL_REDIRECT = True%0ASECURE_HSTS_SECONDS = 60 * 5%0ASECURE_HSTS_INCLUDE_SUBDOMAINS = True%0A%0A# Make this unique, and don't share it with anybody.%0ASECRET_KEY = env('SECRET_KEY')%0A%0A%0A# Remote storage settings:%0ASTATICFILES_STORAGE = 'us_ignite.common.storage.StaticS3Storage'%0ADEFAULT_FILE_STORAGE = 'us_ignite.common.storage.MediaS3Storage'%0ATHUMBNAIL_DEFAULT_STORAGE = DEFAULT_FILE_STORAGE%0A%0AAWS_ACCESS_KEY_ID = env('AWS_ACCESS_KEY_ID')%0AAWS_SECRET_ACCESS_KEY = env('AWS_SECRET_ACCESS_KEY')%0A%0AAWS_STORAGE_BUCKET_NAME = 'staging-us-ignite-dot-org'%0A%0Aexpire_date = datetime.date.today() + datetime.timedelta(days=365)%0Aexpire_seconds = 30 * 24 * 60 * 60%0AAWS_HEADERS = %7B%0A    'Expires': expire_date.strftime('%25a, %25d %25b %25Y 00:00:00 GMT'),%0A    'Cache-Control': 'max-age=%25s' %25 expire_seconds,%0A%7D%0A%0AAWS_S3_CUSTOM_DOMAIN = '%25s.s3.amazonaws.com' %25 AWS_STORAGE_BUCKET_NAME%0ASTATIC_URL = '//%25s/static/' %25 AWS_S3_CUSTOM_DOMAIN%0A%0Aredis_url = urlparse.urlparse(env('REDISTOGO_URL'))%0A%0ACACHES = %7B%0A    'default': %7B%0A        'BACKEND': 'redis_cache.RedisCache',%0A        'LOCATION': '%25s:%25s' %25 (redis_url.hostname, redis_url.port),%0A        'OPTIONS': %7B%0A            'DB': 0,%0A            'PASSWORD': redis_url.password,%0A        %7D%0A    %7D%0A%7D%0A%0A# Email%0AEMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'%0AEMAIL_HOST = env('EMAIL_HOST')%0AEMAIL_PORT = env('EMAIL_PORT')%0AEMAIL_HOST_USER = env('EMAIL_HOST_USER')%0AEMAIL_HOST_PASSWORD = env('EMAIL_HOST_PASSWORD')%0A%0A%0A# Twitter API:%0ATWITTER_API_KEY = env('TWITTER_API_KEY')%0ATWITTER_API_SECRET = env('TWITTER_API_SECRET')%0A%0A# WP email%0AWP_EMAIL = env('WP_EMAIL')%0A%0A%0A# Enable dummy content generation on this build:%0AENABLE_DUMMY = True%0Aif ENABLE_DUMMY:%0A    INSTALLED_APPS += ('us_ignite.dummy', )%0A    # List of words:%0A    WORDS_PATH = here('..', 'words')%0A%0A%0AMAILCHIMP_API_KEY = env('MAILCHIMP_API_KEY')%0AMAILCHIMP_LIST = env('MAILCHIMP_LIST')
 %0A

Add ``staging`` server settings.