Permalink
Browse files

Update settings files to include ALLOWED_HOSTS.

  • Loading branch information...
1 parent 3d2d842 commit 3f833497299d09e80b0940fff2f31e40e5662998 @jonathanchu committed Apr 5, 2013
Showing with 34 additions and 11 deletions.
  1. +32 −11 stashdaddy/settings/base.py
  2. +2 −0 stashdaddy/settings/prod.py
@@ -4,6 +4,7 @@
from postgresify import postgresify
from unipath import Path
+
# BASIC SETUP
PROJECT_ROOT = Path(__file__).ancestor(2)
sys.path.insert(0, PROJECT_ROOT)
@@ -81,30 +82,50 @@
]
# LOGGING
+#
+# Logging
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
- 'filters': {
- 'require_debug_false': {
- '()': 'django.utils.log.RequireDebugFalse'
- }
- },
'handlers': {
- 'mail_admins': {
- 'level': 'ERROR',
- 'filters': ['require_debug_false'],
- 'class': 'django.utils.log.AdminEmailHandler'
- }
+ 'console': {
+ 'level': 'DEBUG',
+ 'class': 'logging.StreamHandler',
+ },
},
'loggers': {
'django.request': {
- 'handlers': ['mail_admins'],
+ 'handlers': ['console'],
'level': 'ERROR',
'propagate': True,
},
}
}
+# LOGGING = {
+# 'version': 1,
+# 'disable_existing_loggers': False,
+# 'filters': {
+# 'require_debug_false': {
+# '()': 'django.utils.log.RequireDebugFalse'
+# }
+# },
+# 'handlers': {
+# 'mail_admins': {
+# 'level': 'ERROR',
+# 'filters': ['require_debug_false'],
+# 'class': 'django.utils.log.AdminEmailHandler'
+# }
+# },
+# 'loggers': {
+# 'django.request': {
+# 'handlers': ['mail_admins'],
+# 'level': 'ERROR',
+# 'propagate': True,
+# },
+# }
+# }
+
# AUTH STUFF
ACCOUNT_ACTIVATION_DAYS = 7
AUTH_USER_MODEL = 'accounts.CustomUser'
@@ -1,6 +1,8 @@
from .base import *
+ALLOWED_HOSTS = ['http://stashdaddy.herokuapp.com/']
+
# AWS credentials
AWS_ACCESS_KEY_ID = os.environ['AWS_ACCESS_KEY_ID']
AWS_SECRET_ACCESS_KEY = os.environ['AWS_SECRET_ACCESS_KEY']

0 comments on commit 3f83349

Please sign in to comment.