forked from jrief/djangocms-cascade
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtestsettings.py
144 lines (138 loc) · 4.31 KB
/
testsettings.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
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
ROOT_URLCONF = 'testurls'
SECRET_KEY = 'test'
SITE_ID = 1
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
}
}
STATIC_URL = '/static/'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'OPTIONS': {
'context_processors': [
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
'django.core.context_processors.i18n',
'django.core.context_processors.debug',
'django.core.context_processors.request',
'django.core.context_processors.media',
'django.core.context_processors.csrf',
'django.core.context_processors.tz',
'sekizai.context_processors.sekizai',
'django.core.context_processors.static',
'cms.context_processors.cms_settings'
],
'loaders': [
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
'django.template.loaders.eggs.Loader'
],
},
},
]
MIDDLEWARE_CLASSES = (
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'cms.middleware.user.CurrentUserMiddleware',
'cms.middleware.page.CurrentPageMiddleware',
'cms.middleware.toolbar.ToolbarMiddleware',
'cms.middleware.language.LanguageCookieMiddleware',
)
INSTALLED_APPS = [
'django.contrib.contenttypes',
'django.contrib.auth',
'django.contrib.sites',
'django.contrib.sessions',
'django.contrib.admin',
'jsonfield',
'reversion',
'filer',
'easy_thumbnails',
'treebeard',
'menus',
'sekizai',
'cms',
'djangocms_text_ckeditor',
'cmsplugin_cascade',
'cmsplugin_cascade.extra_fields',
'cmsplugin_cascade.sharable',
]
LANGUAGES = (
('en', 'English'),
)
LANGUAGE_CODE = 'en'
CMS_TEMPLATES = (
('testing.html', 'Default Page'),
)
CMSPLUGIN_CASCADE_PLUGINS = (
'cmsplugin_cascade.link',
'cmsplugin_cascade.bootstrap3',
)
CMSPLUGIN_CASCADE_WITH_EXTRAFIELDS = [
'BootstrapButtonPlugin', 'BootstrapContainerPlugin',
'BootstrapColumnPlugin', 'BootstrapRowPlugin',
'BootstrapPicturePlugin', 'SimpleWrapperPlugin',
]
CMSPLUGIN_CASCADE_WITH_SHARABLES = {
'BootstrapImagePlugin': (
'image-shapes',
'image-width-responsive',
'image-width-fixed',
'image-height',
'resize-options',
),
'BootstrapPicturePlugin': (
'image-shapes',
'responsive-heights',
'image-size',
'resize-options',
),
'BootstrapButtonPlugin': ('link',),
'TextLinkPlugin': ('link', 'target',),
}
CMS_PLACEHOLDER_CONF = {
'Main Content Container': {
'plugins': ['BootstrapContainerPlugin'],
},
'Bootstrap Column': {
'plugins': ['BootstrapRowPlugin', 'TextPlugin'],
'parent_classes': {'BootstrapRowPlugin': []},
'require_parent': False,
'glossary': {
'breakpoints': ['xs', 'sm', 'md', 'lg'],
'container_max_widths': {
'xs': 750,
'sm': 750,
'md': 970,
'lg': 1170
},
'fluid': False,
'media_queries': {
'xs': ['(max-width: 768px)'],
'sm': ['(min-width: 768px)', '(max-width: 992px)'],
'md': ['(min-width: 992px)', '(max-width: 1200px)'],
'lg': ['(min-width: 1200px)'],
},
},
},
}
THUMBNAIL_PROCESSORS = (
'easy_thumbnails.processors.colorspace',
'easy_thumbnails.processors.autocrop',
'filer.thumbnail_processors.scale_and_crop_with_subject_location',
'easy_thumbnails.processors.filters',
)
THUMBNAIL_PRESERVE_EXTENSIONS = True,
THUMBNAIL_OPTIMIZE_COMMAND = {
'png': '/opt/local/bin/optipng {filename}',
'gif': '/opt/local/bin/optipng {filename}',
'jpeg': '/opt/local/bin/jpegoptim {filename}',
}