Skip to content

Commit 98f4f38

Browse files
committed
In Django site settings:
- Import smtp_account, but pass on ImportError (for local execution) - Turned DEBUG/TEMPLATE_DEBUG off in settings (it should be turned on for dev in local_settings) - Added self to admins to receive error emails - Removed secret key generated by django-admin.py (if we ever need one, we should generate a new one)
1 parent 7771b3a commit 98f4f38

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

pythonkc_site/settings.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44

55
PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))
66

7-
DEBUG = True
8-
TEMPLATE_DEBUG = DEBUG
7+
DEBUG = TEMPLATE_DEBUG = False
98

109
ADMINS = (
11-
# ('Your Name', 'your_email@example.com'),
10+
('Steven Cummings', 'estebistec@gmail.com'),
1211
)
1312

1413
MANAGERS = ADMINS
@@ -86,9 +85,6 @@
8685
# 'django.contrib.staticfiles.finders.DefaultStorageFinder',
8786
)
8887

89-
# Make this unique, and don't share it with anybody.
90-
SECRET_KEY = 'pwmml&2hgn!-be$0fsvv92!q1-6q0=zmv4wr@&d!5h_)shtr^7'
91-
9288
# List of callables that know how to import templates from various sources.
9389
TEMPLATE_LOADERS = (
9490
'django.template.loaders.filesystem.Loader',
@@ -161,7 +157,7 @@
161157
'default': {
162158
'BACKEND': 'redis_cache.RedisCache',
163159
'LOCATION': '{0}:{1}'.format(GONDOR_REDIS_HOST, GONDOR_REDIS_PORT),
164-
'OPTIONS': { # optional
160+
'OPTIONS': {
165161
'DB': 0,
166162
'PASSWORD': GONDOR_REDIS_PASSWORD,
167163
}
@@ -176,3 +172,8 @@
176172

177173

178174
from meetup_api_key import MEETUP_API_KEY
175+
176+
try:
177+
from smtp_account import *
178+
except ImportError:
179+
pass

0 commit comments

Comments
 (0)