-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathsettings.py
65 lines (55 loc) · 1.69 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
# -*- coding: utf-8 -*-
INSTALLED_ADDONS = [
# <INSTALLED_ADDONS> # Warning: text inside the INSTALLED_ADDONS tags is auto-generated. Manual changes will be overwritten.
'aldryn-addons',
'aldryn-django',
'aldryn-sso',
'aldryn-django-cms',
'djangocms-bootstrap4',
'djangocms-file',
'djangocms-googlemap',
'djangocms-history',
'djangocms-icon',
'djangocms-link',
'djangocms-picture',
'djangocms-snippet',
'djangocms-style',
'djangocms-text-ckeditor',
'djangocms-video',
'django-filer',
'cmsplugin-slick',
# </INSTALLED_ADDONS>
]
import aldryn_addons.settings
aldryn_addons.settings.load(locals())
INSTALLED_APPS.extend([
'crispy_forms',
'django_extensions',
'allauth',
'allauth.socialaccount',
'allauth.account',
'django_filters',
'clipping_manager',
])
# Allauth settings
AUTHENTICATION_BACKENDS.append('allauth.account.auth_backends.AuthenticationBackend')
LOGIN_URL = '/accounts/login/' # Override divio login
LOGIN_REDIRECT_URL = 'clipping_manager:dashboard'
ACCOUNT_EMAIL_REQUIRED = True
ACCOUNT_USERNAME_REQUIRED = False
ACCOUNT_AUTHENTICATION_METHOD = 'email'
ACCOUNT_EMAIL_VERIFICATION = 'none'
ACCOUNT_CONFIRM_EMAIL_ON_GET = True
ACCOUNT_SIGNUP_PASSWORD_ENTER_TWICE = False
ACCOUNT_SESSION_REMEMBER = True
ACCOUNT_LOGIN_ATTEMPTS_LIMIT = 10
ACCOUNT_LOGIN_ATTEMPTS_TIMEOUT = 5
SESSION_COOKIE_AGE = 14515200 # 6 months
# Email Backend are automatically configured via the EMAIL_URL environment variable
DEFAULT_FROM_EMAIL = '[email protected]'
CRISPY_TEMPLATE_PACK = 'bootstrap4'
CMS_TEMPLATES = (
('content.html', 'Content'),
('fullwidth.html', 'Fullwidth'),
('sidebar.html', 'Sidebar'),
)