"""
Django settings for gettingstarted project.

For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/

For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os
import dj_database_url

BASE_DIR = os.path.dirname(os.path.dirname(__file__))


# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.6/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
DEFAULT_SECRET_KEY = '3iy-!-d$!pc_ll$#$elg&cpr@*tfn-d5&n9ag=)%#()t$$5%5^'
SECRET_KEY = os.environ.get('SECRET_KEY', DEFAULT_SECRET_KEY)

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

TEMPLATE_DEBUG = True

ALLOWED_HOSTS = []


# Application definition

INSTALLED_APPS = (
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'hello'
)

MIDDLEWARE_CLASSES = (
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
)

ROOT_URLCONF = 'gettingstarted.urls'

WSGI_APPLICATION = 'gettingstarted.wsgi.application'


# Database
# https://docs.djangoproject.com/en/1.6/ref/settings/#databases

# Parse database configuration from $DATABASE_URL

DATABASES = {
    'default': dj_database_url.config(default='sqlite:///'+os.path.join(BASE_DIR, 'db.sqlite3'))
}

# Internationalization
# https://docs.djangoproject.com/en/1.6/topics/i18n/

LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'UTC'

USE_I18N = True

USE_L10N = True

USE_TZ = True


# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.6/howto/static-files/

STATIC_URL = '/static/'

# Honor the 'X-Forwarded-Proto' header for request.is_secure()
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')

# Allow all host headers
ALLOWED_HOSTS = ['*']

# Static asset configuration
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
STATIC_ROOT = 'staticfiles'
STATIC_URL = '/static/'

STATICFILES_DIRS = (
    os.path.join(BASE_DIR, 'static'),
)

@@ -352,16 +352,89 @@
 se_url%0A%0A
+%0A# Build paths inside the project like this: os.path.join(BASE_DIR, ...)%0A
 BASE_DIR
@@ -582,25 +582,25 @@
 ct.com/en/1.
-6
+7
 /howto/deplo
@@ -684,24 +684,16 @@
 secret!%0A
-DEFAULT_
 SECRET_K
@@ -702,121 +702,59 @@
  = '
-3iy-!-d$!pc_ll$#$elg&cpr@*tfn-d5&n9ag=)%25#()t$$5%255%5E'%0ASECRET_KEY = os.environ.get('SECRET_KEY', DEFAULT_SECRET_KEY)
+i+acxn5(akgsn!sr4%5Eqgf(%5Em&*@+g1@u%5Et@=8s@axc41ml*f=s'
 %0A%0A# 
@@ -858,28 +858,8 @@
 ue%0A%0A
-ALLOWED_HOSTS = %5B%5D%0A%0A
 %0A# A
@@ -1337,32 +1337,102 @@
 ionMiddleware',%0A
+    'django.contrib.auth.middleware.SessionAuthenticationMiddleware',%0A
     'django.cont
@@ -1674,33 +1674,33 @@
 roject.com/en/1.
-6
+7
 /ref/settings/#d
@@ -1713,132 +1713,103 @@
 es%0A%0A
-# Parse database configuration from $DATABASE_URL%0A%0ADATABASES = %7B%0A    'default': dj_database_url.config(default='sqlite:///'+
+DATABASES = %7B%0A    'default': %7B%0A        'ENGINE': 'django.db.backends.sqlite3',%0A        'NAME': 
 os.p
@@ -1840,17 +1840,23 @@
 qlite3')
-)
+,%0A    %7D
 %0A%7D%0A%0A# In
@@ -1904,33 +1904,33 @@
 roject.com/en/1.
-6
+7
 /topics/i18n/%0A%0AL
@@ -1952,17 +1952,16 @@
 'en-us'%0A
-%0A
 TIME_ZON
@@ -1970,17 +1970,16 @@
 = 'UTC'%0A
-%0A
 USE_I18N
@@ -1982,25 +1982,24 @@
 I18N = True%0A
-%0A
 USE_L10N = T
@@ -2002,17 +2002,16 @@
  = True%0A
-%0A
 USE_TZ =
@@ -2024,130 +2024,200 @@
 %0A%0A# 
-Static files (CSS, JavaScript, Images)%0A# https://docs.djangoproject.com/en/1.6/howto/static-files/%0A%0ASTATIC_URL = '/static/
+Parse database configuration from $DATABASE_URL%0ADATABASES%5B'default'%5D =  dj_database_url.config()%0A%0A# Enable Connection Pooling (if desired)%0ADATABASES%5B'default'%5D%5B'ENGINE'%5D = 'django_postgrespool
 '%0A%0A#
@@ -2402,27 +2402,100 @@
 tic 
-asset configuration
+files (CSS, JavaScript, Images)%0A# https://docs.djangoproject.com/en/1.7/howto/static-files/%0A
 %0ABAS
@@ -2655,12 +2655,172 @@
 static'),%0A)%0A
+%0A# Simplified static file serving.%0A# https://warehouse.python.org/project/whitenoise/%0ASTATICFILES_STORAGE = 'whitenoise.django.GzipManifestStaticFilesStorage'%0A%0A

update settings.py