Merge pull request #17 from nephila/feature/improve_setup
Improve setup
This commit is contained in:
commit
d177a83fa5
5 changed files with 47 additions and 12 deletions
|
@ -14,8 +14,11 @@ env:
|
||||||
- TOXENV='pep8'
|
- TOXENV='pep8'
|
||||||
- TOXENV='isort'
|
- TOXENV='isort'
|
||||||
- TOXENV='docs'
|
- TOXENV='docs'
|
||||||
|
- DJANGO='django110' CMS='cms34'
|
||||||
|
- DJANGO='django19' CMS='cms34'
|
||||||
- DJANGO='django19' CMS='cms33'
|
- DJANGO='django19' CMS='cms33'
|
||||||
- DJANGO='django19' CMS='cms32'
|
- DJANGO='django19' CMS='cms32'
|
||||||
|
- DJANGO='django18' CMS='cms34'
|
||||||
- DJANGO='django18' CMS='cms33'
|
- DJANGO='django18' CMS='cms33'
|
||||||
- DJANGO='django18' CMS='cms32'
|
- DJANGO='django18' CMS='cms32'
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ HELPER_SETTINGS = dict(
|
||||||
ROOT_URLCONF='tests.test_utils.urls1',
|
ROOT_URLCONF='tests.test_utils.urls1',
|
||||||
INSTALLED_APPS=[
|
INSTALLED_APPS=[
|
||||||
'multisite',
|
'multisite',
|
||||||
'djangocms_text_ckeditor'
|
'djangocms_text_ckeditor',
|
||||||
],
|
],
|
||||||
LANGUAGE_CODE='en',
|
LANGUAGE_CODE='en',
|
||||||
LANGUAGES=(
|
LANGUAGES=(
|
||||||
|
@ -56,9 +56,34 @@ HELPER_SETTINGS = dict(
|
||||||
'www.example.com': ('alias1.example.com', 'alias2.example.com',),
|
'www.example.com': ('alias1.example.com', 'alias2.example.com',),
|
||||||
'www.example2.com': ('alias1.example2.com', 'alias2.example2.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():
|
def run():
|
||||||
from djangocms_helper import runner
|
from djangocms_helper import runner
|
||||||
|
|
|
@ -20,6 +20,12 @@ urlpatterns = [
|
||||||
url(r'^jsi18n/(?P<packages>\S+?)/$', javascript_catalog),
|
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 += staticfiles_urlpatterns()
|
||||||
|
|
||||||
urlpatterns += i18n_patterns(
|
urlpatterns += i18n_patterns(
|
||||||
|
|
|
@ -20,6 +20,12 @@ urlpatterns = [
|
||||||
url(r'^jsi18n/(?P<packages>\S+?)/$', javascript_catalog),
|
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 += staticfiles_urlpatterns()
|
||||||
|
|
||||||
urlpatterns += i18n_patterns(
|
urlpatterns += i18n_patterns(
|
||||||
|
|
15
tox.ini
15
tox.ini
|
@ -1,26 +1,21 @@
|
||||||
[tox]
|
[tox]
|
||||||
envlist = pep8,isort,docs,py{35,34,27}-django{19}-{cms33,cms32},py{35,34,33,27}-django{18}-cms{33,32,31},py{34,33,27}-django{17,16}-cms{32,31,30},py{26}-django16-cms{31,30}
|
envlist = pep8,isort,docs,py{35,34,27}-django{110}-cms{34},py{35,34,27}-django{19}-cms{34,33,32},py{35,34,33,27}-django{18}-cms{34,33,32}
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
commands = {env:COMMAND:python} cms_helper.py test djangocms_multisite
|
commands = {env:COMMAND:python} cms_helper.py test djangocms_multisite
|
||||||
deps =
|
deps =
|
||||||
django16: Django>=1.6,<1.7
|
|
||||||
django16: django-taggit<0.18
|
|
||||||
django16: django-mptt<0.8
|
|
||||||
django17: Django>=1.7,<1.8
|
|
||||||
django17: django-mptt<0.8
|
|
||||||
django18: Django>=1.8,<1.9
|
django18: Django>=1.8,<1.9
|
||||||
django18: django-mptt>=0.8
|
django18: django-mptt>=0.8
|
||||||
django19: Django>=1.9,<1.10
|
django19: Django>=1.9,<1.10
|
||||||
django19: django-mptt>=0.8
|
django19: django-mptt>=0.8
|
||||||
cms30: https://github.com/divio/django-cms/archive/release/3.0.x.zip
|
django110: Django>=1.10,<1.11
|
||||||
cms30: djangocms-text-ckeditor<2.8
|
django110: django-mptt>=0.8
|
||||||
cms31: https://github.com/divio/django-cms/archive/release/3.1.x.zip
|
|
||||||
cms31: djangocms-text-ckeditor<2.9
|
|
||||||
cms32: https://github.com/divio/django-cms/archive/release/3.2.x.zip
|
cms32: https://github.com/divio/django-cms/archive/release/3.2.x.zip
|
||||||
cms32: djangocms-text-ckeditor<3.0
|
cms32: djangocms-text-ckeditor<3.0
|
||||||
cms33: https://github.com/divio/django-cms/archive/release/3.3.x.zip
|
cms33: https://github.com/divio/django-cms/archive/release/3.3.x.zip
|
||||||
cms33: djangocms-text-ckeditor>=3.0
|
cms33: djangocms-text-ckeditor>=3.0
|
||||||
|
cms34: https://github.com/divio/django-cms/archive/release/3.4.x.zip
|
||||||
|
cms34: djangocms-text-ckeditor>=3.0
|
||||||
https://github.com/nephila/djangocms-helper/archive/develop.zip
|
https://github.com/nephila/djangocms-helper/archive/develop.zip
|
||||||
-r{toxinidir}/requirements-test.txt
|
-r{toxinidir}/requirements-test.txt
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue