-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathlocal_settings.example
78 lines (64 loc) · 1.85 KB
/
local_settings.example
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
73
74
75
76
77
78
# Local settings for checkup application.
import os
ROOT_PATH = os.path.dirname(__file__)
STATIC_ROOT = os.path.join(ROOT_PATH, 'static')
BUILD_DIR = os.path.join(ROOT_PATH, 'build')
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': '', # Or path to database file if using sqlite3.
# The following settings are not used with sqlite3:
'USER': '',
'PASSWORD': '',
'HOST': '', # Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP.
'PORT': '', # Set to empty string for default.
}
}
# CheckUp required apps
INSTALLED_APPS += (
'grappelli.dashboard',
'grappelli',
'django.contrib.admin',
'django.contrib.admindocs',
'django.contrib.humanize',
'django.contrib.redirects',
'gunicorn',
'django_extensions',
'localflavor',
'south',
'bakery',
'dbtemplates',
'checkup',
)
# Grappelli (fancy admin) settings
GRAPPELLI_INDEX_DASHBOARD = 'checkup.dashboard.CustomIndexDashboard'
GRAPPELLI_ADMIN_TITLE = 'CheckUp'
# Views that django_bakery needs to bake
BAKERY_VIEWS = [
'checkup.views.SurveyDetail',
'checkup.views.AssignmentDetail',
]
# Bit.ly short link Twitter settings
BITLY_OAUTH2 = ''
# Email defaults/server settings
EMAIL_USE_TLS = True
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_USER = ''
EMAIL_HOST_PASSWORD = ''
EMAIL_PORT = 587
SERVER_EMAIL = ''
DEFAULT_FROM_EMAIL = ''
# Political party choices for CheckUp
POLITICAL_PARTIES = (
('D', 'Democrat'),
('R', 'Republican'),
('C', 'Conservative'),
('WF', 'Working Families'),
('I', 'Independence'),
('G', 'Green'),
)
# Base template, this is optional, default is checkup/base.html
TEMPLATE_BASE = "newsday/base.html"
# Turn off debug
# DEBUG = False
# TEMPLATE_DEBUG = DEBUG