forked from cfpb/idea-box
-
Notifications
You must be signed in to change notification settings - Fork 1
/
idea.settings.base
129 lines (118 loc) · 4.44 KB
/
idea.settings.base
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
DEBUG = True
TEMPLATE_DEBUG = DEBUG
INSTALLED_APPS = [
'idea',
'django.contrib.auth',
'django.contrib.admin',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.staticfiles',
'mptt',
'taggit',
'debug_toolbar',
'debug_panel',
#allauth...
'allauth',
'allauth.account',
'allauth.socialaccount',
# 'allauth.socialaccount.providers.amazon',
# 'allauth.socialaccount.providers.angellist',
# 'allauth.socialaccount.providers.asana',
# 'allauth.socialaccount.providers.baidu',
# 'allauth.socialaccount.providers.basecamp',
# 'allauth.socialaccount.providers.bitbucket',
# 'allauth.socialaccount.providers.bitbucket_oauth2',
# 'allauth.socialaccount.providers.bitly',
# 'allauth.socialaccount.providers.coinbase',
# 'allauth.socialaccount.providers.digitalocean',
# 'allauth.socialaccount.providers.douban',
# 'allauth.socialaccount.providers.draugiem',
# 'allauth.socialaccount.providers.dropbox',
# 'allauth.socialaccount.providers.dropbox_oauth2',
# 'allauth.socialaccount.providers.edmodo',
# 'allauth.socialaccount.providers.eveonline',
# 'allauth.socialaccount.providers.evernote',
# 'allauth.socialaccount.providers.facebook',
# 'allauth.socialaccount.providers.feedly',
# 'allauth.socialaccount.providers.flickr',
# 'allauth.socialaccount.providers.foursquare',
# 'allauth.socialaccount.providers.fxa',
# 'allauth.socialaccount.providers.github',
# 'allauth.socialaccount.providers.gitlab',
# 'allauth.socialaccount.providers.google',
# 'allauth.socialaccount.providers.hubic',
# 'allauth.socialaccount.providers.instagram',
# 'allauth.socialaccount.providers.linkedin',
# 'allauth.socialaccount.providers.linkedin_oauth2',
# 'allauth.socialaccount.providers.mailru',
# 'allauth.socialaccount.providers.odnoklassniki',
# 'allauth.socialaccount.providers.openid',
# 'allauth.socialaccount.providers.orcid',
# 'allauth.socialaccount.providers.paypal',
# 'allauth.socialaccount.providers.persona',
# 'allauth.socialaccount.providers.pinterest',
# 'allauth.socialaccount.providers.reddit',
# 'allauth.socialaccount.providers.robinhood',
# 'allauth.socialaccount.providers.shopify',
# 'allauth.socialaccount.providers.slack',
# 'allauth.socialaccount.providers.soundcloud',
# 'allauth.socialaccount.providers.spotify',
# 'allauth.socialaccount.providers.stackexchange',
# 'allauth.socialaccount.providers.stripe',
# 'allauth.socialaccount.providers.tumblr',
# 'allauth.socialaccount.providers.twentythreeandme',
# 'allauth.socialaccount.providers.twitch',
# 'allauth.socialaccount.providers.twitter',
# 'allauth.socialaccount.providers.untappd',
# 'allauth.socialaccount.providers.vimeo',
# 'allauth.socialaccount.providers.vk',
# 'allauth.socialaccount.providers.weibo',
# 'allauth.socialaccount.providers.weixin',
# 'allauth.socialaccount.providers.windowslive',
# 'allauth.socialaccount.providers.xing',
]
SECRET_KEY = os.environ.get('DJANGO_SECRET_KEY')
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'data/localhost.sqlite3',
},
# 'test': {
# 'ENGINE': 'django.db.backends.mysql',
# 'NAME': 'novumaz',
# 'USER': 'novumaz',
# 'PASSWORD': 'novumaz',
# 'HOST': '',
# 'PORT': '',
# },
# 'production': {
# 'ENGINE': 'django.db.backends.mysql',
# 'NAME': 'set database name',
# 'USER': 'set database user name',
# 'PASSWORD': 'set database user password',
# 'HOST': '',
# 'PORT': '',
# },
}
ROOT_URLCONF = 'idea.urls'
MIDDLEWARE_CLASSES = (
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'debug_panel.middleware.DebugPanelMiddleware',
)
import dj_database_url
db_from_env = dj_database_url.config()
DATABASES['default'].update(db_from_env)
PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__))
STATIC_ROOT = os.path.join(PROJECT_ROOT, 'staticfiles')
STATIC_URL = '/static/'
# Extra places for collectstatic to find static files.
STATICFILES_DIRS = (
os.path.join(PROJECT_ROOT, 'static'),
)
# auth and allauth settings
LOGIN_REDIRECT_URL = '/'
SOCIALACCOUNT_QUERY_EMAIL = True
SOCIALACCOUNT_ENABLED = False