Add tests for auto setup
This commit is contained in:
parent
cd4f6553dd
commit
ac42d6cb6e
4 changed files with 77 additions and 2 deletions
|
|
@ -4,4 +4,3 @@ __email__ = 'i.spalletti@nephila.it'
|
|||
__version__ = '0.6.0.dev1'
|
||||
|
||||
default_app_config = 'djangocms_blog.apps.BlogAppConfig'
|
||||
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
from __future__ import absolute_import, print_function, unicode_literals
|
||||
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
try:
|
||||
from django.apps import AppConfig
|
||||
except ImportError:
|
||||
|
|
@ -46,7 +47,7 @@ class BlogAppConfig(AppConfig):
|
|||
get_setting('AUTO_HOME_TITLE'), language=lang,
|
||||
template=default_template, in_navigation=True, published=True
|
||||
)
|
||||
else:
|
||||
elif lang not in home.get_languages():
|
||||
create_title(
|
||||
language=lang, title=get_setting('AUTO_HOME_TITLE'), page=home
|
||||
)
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
from __future__ import absolute_import, print_function, unicode_literals
|
||||
|
||||
from django.conf.urls import patterns, url
|
||||
|
||||
from .apps import BlogAppConfig
|
||||
from .feeds import LatestEntriesFeed, TagFeed
|
||||
from .settings import get_setting
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue