-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.py
100 lines (89 loc) · 2.43 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
90
91
92
93
94
95
96
97
98
99
100
SECRET_KEY = "giant-plugins"
DATABASES = {
"default": {
"ENGINE": "django.db.backends.sqlite3",
"NAME": "giant-plugins",
}
}
PLUGINS = [
"giant_plugins.content_width_image",
"giant_plugins.content_width_video",
"giant_plugins.donate",
"giant_plugins.featured_cta",
"giant_plugins.hero_image",
"giant_plugins.logo_grid",
"giant_plugins.page_card",
"giant_plugins.pullquote",
"giant_plugins.rich_text",
"giant_plugins.share_this_page",
"giant_plugins.gallery",
"giant_plugins.key_stats",
"giant_plugins.multilink",
]
INSTALLED_APPS = [
"cms",
"treebeard",
"menus",
"sekizai",
"easy_thumbnails",
"filer",
"mptt",
"djangocms_admin_style",
"django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.sites",
"django.contrib.sessions",
"django.contrib.messages",
"mixins",
"giant_plugins",
] + PLUGINS
# Used for testing when creating a Page object
CMS_TEMPLATES = [
("base.html", "Default"),
]
TEMPLATES = [
{
"BACKEND": "django.template.backends.django.DjangoTemplates",
"DIRS": ["giant_plugins/templates", "giant_plugins/tests/templates"],
"OPTIONS": {
"context_processors": [
"django.contrib.auth.context_processors.auth",
"django.template.context_processors.request",
"django.contrib.messages.context_processors.messages",
],
},
},
]
MIDDLEWARE = [
"django.contrib.sessions.middleware.SessionMiddleware",
"django.contrib.auth.middleware.AuthenticationMiddleware",
"django.contrib.messages.middleware.MessageMiddleware",
]
SITE_ID = 1
LANGUAGE_CODE = 'en-gb'
LANGUAGES = [
('en-gb', 'English'),
]
SUMMERNOTE_CONFIG = (
{
"iframe": True,
"summernote": {
"airMode": False,
# Change editor size
"width": "100%",
"height": "480",
"lang": None,
"toolbar": [
["style", ["style"]],
["font", ["bold", "underline", "clear"]],
["fontname", ["fontname"]],
["color", ["color"]],
["para", ["ul", "ol", "paragraph"]],
["table", ["table"]],
["insert", ["link", "picture", "video"]],
["view", ["fullscreen", "codeview", "help"]],
],
},
},
)