forked from rhooper/djangocms-conditional
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cms_helper.py
43 lines (42 loc) · 1 KB
/
cms_helper.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
# -*- coding: utf-8 -*-
import sys
from tempfile import mkdtemp
gettext = lambda s: s
HELPER_SETTINGS = {
'NOSE_ARGS': [
'-s',
],
'INSTALLED_APPS': [
# 'cms',
# 'treebeard',
# 'menus', # helper for model independent hierarchical website navigation
'djangocms_text_ckeditor',
],
'LANGUAGE_CODE': 'en',
'LANGUAGES': (
('en', gettext('English')),
),
'CMS_LANGUAGES': {
1: [
{
'code': 'en',
'name': gettext('English'),
'public': True,
},
{
'code': 'fr',
'name': gettext('Français'),
'public': True,
},
],
'default': {
'hide_untranslated': False,
},
},
'MIDDLEWARE_CLASSES': [
'django.contrib.messages.middleware.MessageMiddleware',
],
'SITE_ID': 1
}
if 'test' in sys.argv:
HELPER_SETTINGS['INSTALLED_APPS'].append('django_nose')