INSTALLED_APPS += (
'storages',
'gunicorn',
+ 'sslify',
)
# See: http://django-storages.readthedocs.org/en/latest/backends/amazon-S3.html#settings
########## SSL FORWARDING CONFIGURATION
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
+MIDDLEWARE_CLASSES = (
+ 'sslify.middleware.SSLifyMiddleware',
+) + MIDDLEWARE_CLASSES
########## END SSL FORWARDING CONFIGURATION
########## COMPRESSION CONFIGURATION
AWS_QUERYSTRING_EXPIRE = 60 * 60 * 24 * 365 * 10
########## END COMPRESSION CONFIGURATION
-
########## SECRET CONFIGURATION
# See: https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
SECRET_KEY = environ.get('SECRET_KEY', SECRET_KEY)