Add -optional- djangocms-blog to test environment
This commit is contained in:
parent
1283d3139c
commit
7be32d8c08
3 changed files with 39 additions and 2 deletions
|
@ -14,7 +14,7 @@ HELPER_SETTINGS = dict(
|
|||
ROOT_URLCONF='tests.test_utils.urls1',
|
||||
INSTALLED_APPS=[
|
||||
'multisite',
|
||||
'djangocms_text_ckeditor'
|
||||
'djangocms_text_ckeditor',
|
||||
],
|
||||
LANGUAGE_CODE='en',
|
||||
LANGUAGES=(
|
||||
|
@ -56,9 +56,34 @@ HELPER_SETTINGS = dict(
|
|||
'www.example.com': ('alias1.example.com', 'alias2.example.com',),
|
||||
'www.example2.com': ('alias1.example2.com', 'alias2.example2.com',),
|
||||
},
|
||||
MULTISITE_CMS_FALLBACK='www.example.com'
|
||||
MULTISITE_CMS_FALLBACK='www.example.com',
|
||||
ALLOWED_HOSTS=['*'],
|
||||
)
|
||||
|
||||
try:
|
||||
import djangocms_blog
|
||||
HELPER_SETTINGS['INSTALLED_APPS'].extend([
|
||||
'filer',
|
||||
'easy_thumbnails',
|
||||
'aldryn_apphooks_config',
|
||||
'cmsplugin_filer_image',
|
||||
'parler',
|
||||
'taggit',
|
||||
'taggit_autosuggest',
|
||||
'meta',
|
||||
'djangocms_blog',
|
||||
])
|
||||
HELPER_SETTINGS['THUMBNAIL_PROCESSORS'] = (
|
||||
'easy_thumbnails.processors.colorspace',
|
||||
'easy_thumbnails.processors.autocrop',
|
||||
'filer.thumbnail_processors.scale_and_crop_with_subject_location',
|
||||
'easy_thumbnails.processors.filters',
|
||||
)
|
||||
HELPER_SETTINGS['META_SITE_PROTOCOL'] = 'http'
|
||||
HELPER_SETTINGS['META_USE_SITES'] = True
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
|
||||
def run():
|
||||
from djangocms_helper import runner
|
||||
|
|
|
@ -20,6 +20,12 @@ urlpatterns = [
|
|||
url(r'^jsi18n/(?P<packages>\S+?)/$', javascript_catalog),
|
||||
]
|
||||
|
||||
try:
|
||||
import taggit_autosuggest
|
||||
urlpatterns.append(url(r'^taggit_autosuggest/', include('taggit_autosuggest.urls')))
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
urlpatterns += staticfiles_urlpatterns()
|
||||
|
||||
urlpatterns += i18n_patterns(
|
||||
|
|
|
@ -20,6 +20,12 @@ urlpatterns = [
|
|||
url(r'^jsi18n/(?P<packages>\S+?)/$', javascript_catalog),
|
||||
]
|
||||
|
||||
try:
|
||||
import taggit_autosuggest
|
||||
urlpatterns.append(url(r'^taggit_autosuggest/', include('taggit_autosuggest.urls')))
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
urlpatterns += staticfiles_urlpatterns()
|
||||
|
||||
urlpatterns += i18n_patterns(
|
||||
|
|
Loading…
Reference in a new issue