forked from dchaplinsky/unshred-tag
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.py
89 lines (71 loc) · 3.03 KB
/
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
import os
SECRET_KEY = 'random-secret-key'
SESSION_COOKIE_NAME = 'unshred_session'
DEBUG = True
MONGODB_SETTINGS = {
'DB': os.environ.get("mongodb_db", "unshred"),
'HOST': os.environ.get("mongodb_host", "localhost"),
'USERNAME': os.environ.get("mongodb_username", None),
'PASSWORD': os.environ.get("mongodb_password", None),
'PORT': (int(os.environ.get("mongodb_port"))
if os.environ.get("mongodb_port") else None)
}
DEBUG_TB_INTERCEPT_REDIRECTS = False
SESSION_PROTECTION = 'strong'
SOCIAL_AUTH_USERNAME_IS_FULL_EMAIL = True
SOCIAL_AUTH_LOGIN_URL = '/'
SOCIAL_AUTH_LOGIN_REDIRECT_URL = '/'
SOCIAL_AUTH_USER_MODEL = 'models.user.User'
SOCIAL_AUTH_AUTHENTICATION_BACKENDS = (
'social.backends.google.GoogleOAuth2',
'social.backends.twitter.TwitterOAuth',
'social.backends.facebook.FacebookOAuth2',
'social.backends.vk.VKOAuth2',
)
SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = ''
SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = ''
SOCIAL_AUTH_TWITTER_KEY = ''
SOCIAL_AUTH_TWITTER_SECRET = ''
SOCIAL_AUTH_FACEBOOK_KEY = ''
SOCIAL_AUTH_FACEBOOK_SECRET = ''
SOCIAL_AUTH_VK_OAUTH2_KEY = ''
SOCIAL_AUTH_VK_APP_SECRET = ''
SOCIAL_AUTH_FACEBOOK_SCOPE = ['email']
JS_ASSETS = ['vendor/jquery/jquery.js',
'vendor/jquery.cookie/jquery.cookie.js',
'vendor/bootstrap/bootstrap.js',
'vendor/string_score/string_score.js',
'vendor/jquery.hotkeys/jquery.hotkeys.js',
'vendor/textext/js/textext.core.js',
'vendor/textext/js/textext.plugin.tags.js',
'vendor/textext/js/textext.plugin.autocomplete.js',
'vendor/textext/js/textext.plugin.prompt.js',
'vendor/textext/js/textext.plugin.arrow.js',
'vendor/textext/js/textext.plugin.suggestions.js',
# patch to add quicksilver search to textext suggestions
'scripts/textext.plugin.suggestions.monkeypatch.js',
'vendor/jquery.magnific-popup/jquery.magnific-popup.min.js',
'vendor/jquery.rotate/jquery.rotate.js',
'scripts/base.js']
JS_ASSETS_OUTPUT = 'scripts/packed.js'
JS_ASSETS_FILTERS = 'yui_js'
CSS_ASSETS = ['vendor/bootstrap/bootstrap.css',
'vendor/textext/css/textext.core.css',
'vendor/textext/css/textext.plugin.tags.css',
'vendor/textext/css/textext.plugin.prompt.css',
'vendor/textext/css/textext.plugin.arrow.css',
'vendor/textext/css/textext.plugin.autocomplete.css',
'vendor/jquery.magnific-popup/jquery.magnific-popup.css',
'styles/textext.overwrite.css', 'styles/style.css']
CSS_ASSETS_OUTPUT = 'styles/packed.css'
CSS_ASSETS_FILTERS = 'yui_css'
S3_ENABLED = bool(os.environ.get("s3_enabled"))
S3_ACCESS_KEY_ID = os.environ.get("aws_access_key_id")
S3_SECRET_ACCESS_KEY = os.environ.get("aws_secret_access_key")
S3_SRC_BUCKET_NAME = 'kurchenko_pink'
S3_DST_BUCKET_NAME = 'kurchenko'
LOCAL_FS_SRC_DIR = '../cv/pink/'
LOCAL_FS_URL = 'http://localhost:5000/'
SPLIT_OUT_DIR = "static/out"
USERS_PER_SHRED = 2
SITE_IS_CLOSED = False