-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlocal_settings.py
72 lines (57 loc) · 2.08 KB
/
local_settings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
DEBUG = True
TEMPLATE_DEBUG = DEBUG
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'coia', # Or path to database file if using
'USER' : 'coia',
'PASSWORD' : 'A1aaaaa',
}
}
MEDIA_ROOT = '/home/coia/webapps/static/media'
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash if there is a path component (optional in other cases).
# Examples: "http://media.lawrence.com", "http://example.com/media/"
MEDIA_URL = '/uploads/'
STATIC_URL = '/static/'
STATIC_ROOT = '/home/coia/webapps/static/static'
STATICFILES_DIRS = (
'static/',
)
#INSTALLED_APPS = INSTALLED_APPS+('debug_toolbar',)
#MIDDLEWARE_CLASSES = ('debug_toolbar.middleware.DebugToolbarMiddleware',) + MIDDLEWARE_CLASSES
INTERNAL_IPS = ('127.0.0.1',)
DEBUG_TOOLBAR_CONFIG = {
"INTERCEPT_REDIRECTS":False,
"SQL_DUPLICATES":True,
# "ENABLE_STACKTRACES":False,
}
DEBUG_TOOLBAR_PANELS = (
'debug_toolbar.panels.version.VersionDebugPanel',
'debug_toolbar.panels.timer.TimerDebugPanel',
'debug_toolbar.panels.settings_vars.SettingsVarsDebugPanel',
'debug_toolbar.panels.headers.HeaderDebugPanel',
'debug_toolbar.panels.request_vars.RequestVarsDebugPanel',
'debug_toolbar.panels.template.TemplateDebugPanel',
'debug_toolbar.panels.sql.SQLDebugPanel',
'debug_toolbar.panels.signals.SignalDebugPanel',
'debug_toolbar.panels.logger.LoggingPanel',
)
CACHES = {
'default': {
#'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
'LOCATION': 'unique-snowflake',
}
}
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_USER = 'survey2012@ihpresults.net'
EMAIL_HOST_PASSWORD = 'surveytools'
EMAIL_PORT = 587
EMAIL_USE_TLS = True
SERVER_EMAIL='"IHP+Results Survey 2012" <survey2012@ihpresults.net>'
DEFAULT_FROM_EMAIL=SERVER_EMAIL
ADMINS = (
('Sysadmin','sysadmin@ihpresults.net'),
)
EMAIL_SUBJECT_PREFIX='[Local] '