Skip to content

Commit

Permalink
prepend www
Browse files Browse the repository at this point in the history
  • Loading branch information
aniversarioperu committed Jan 24, 2015
1 parent c518664 commit a3f43b4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion manolo/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,20 @@

from .base import *

DEBUG = True
DEBUG = False
TEMPLATE_DEBUG = DEBUG
PREPEND_WWW = True

ADMINS = (
('AniversarioPeru', 'aniversarioperu1@gmail.com'),
)

MANAGERS = ADMINS

ALLOWED_HOSTS = [
'.manolo.rocks', # Allow domain and subdomains
'.manolo.rocks.', # Also allow FQDN and subdomains
]

BASE_DIR = os.path.dirname(os.path.dirname(__file__))
SECRETS_FILE = os.path.join(BASE_DIR, '..', 'config.json')
Expand All @@ -29,6 +34,8 @@ def get_secret(setting, secrets=secrets):
error_msg = "Set the {0} environment variable".format(setting)
raise ImproperlyConfigured(error_msg)

SECRET_KEY = get_secret('SECRET_KEY')

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
Expand Down

0 comments on commit a3f43b4

Please sign in to comment.