This repository has been archived by the owner on Feb 15, 2023. It is now read-only.
forked from aldryn/aldryn-events
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_settings.py
executable file
·108 lines (94 loc) · 2.58 KB
/
test_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
101
102
103
104
105
106
107
108
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from distutils.version import LooseVersion
from cms import __version__ as cms_string_version
cms_version = LooseVersion(cms_string_version)
def noop_gettext(s):
return s
gettext = noop_gettext
HELPER_SETTINGS = {
'TIME_ZONE': 'UTC',
'INSTALLED_APPS': [
'aldryn_apphook_reload', # for tests
'aldryn_apphooks_config',
'aldryn_common',
'aldryn_translation_tools',
'appconf',
'bootstrap3',
'djangocms_text_ckeditor',
'easy_thumbnails',
'extended_choices',
'filer',
'mptt',
'parler',
'sortedm2m',
'standard_form',
'django_tablib',
'aldryn_events',
],
'CMS_PERMISSION': True,
'LANGUAGES': (
('en', 'English'),
('de', 'German'),
),
'PARLER_LANGUAGES': {
1: [
{
'code': u'en',
'fallbacks': [u'de'],
'hide_untranslated': False
},
{
'code': u'de',
'fallbacks': [u'en'],
'hide_untranslated': False
}
],
'default': {
'code': u'en',
'fallbacks': [u'en'],
'hide_untranslated': False}
},
'PARLER_ENABLE_CACHING': False,
'CMS_LANGUAGES': {
'default': {
'public': True,
'hide_untranslated': False,
'fallbacks': ['en']
},
1: [
{
'public': True,
'code': 'en',
'fallbacks': [u'de'],
'hide_untranslated': False,
'name': gettext('en'),
'redirect_on_fallback': True,
},
{
'public': True,
'code': 'de',
'fallbacks': [u'en'],
'hide_untranslated': False,
'name': gettext('de'),
'redirect_on_fallback': True,
},
],
},
'THUMBNAIL_PROCESSORS': (
'easy_thumbnails.processors.colorspace',
'easy_thumbnails.processors.autocrop',
'filer.thumbnail_processors.scale_and_crop_with_subject_location',
'easy_thumbnails.processors.filters',
),
'EMAIL_BACKEND': 'django.core.mail.backends.locmem.EmailBackend',
'DEBUG': True,
# 'TEMPLATE_DEBUG': True,
'ALDRYN_EVENTS_USER_REGISTRATION_EMAIL': True,
}
def run():
from djangocms_helper import runner
runner.cms('aldryn_events')
if __name__ == "__main__":
run()