X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/44090c986d9a16f6913047c25319c446bb9308ad..b1fb752ca1abb051a63da4729e34a80affc25c76:/migdal/settings.py?ds=inline diff --git a/migdal/settings.py b/migdal/settings.py index 4331c07..a2e5b52 100644 --- a/migdal/settings.py +++ b/migdal/settings.py @@ -22,10 +22,17 @@ TYPES = app_setting('MIGDAL_TYPES', ( )) TYPES_DICT = dict((t.db, t) for t in TYPES) TYPES_ON_MAIN = tuple(t.db for t in TYPES if t.on_main) -# FIXME: if only news is on_main, `news/` should either throw 404 or redirect to main +TYPE_SUBMIT = 'news' + LANGUAGES = app_setting('MIGDAL_LANGUAGES', settings.LANGUAGES) LANGUAGE_CODE = app_setting('MIGDAL_LANGUAGE_CODE', settings.LANGUAGE_CODE) OBLIGATORY_LANGUAGES = app_setting('MIGDAL_OBLIGATORY', tuple( lang for lang in LANGUAGES if lang[0]==LANGUAGE_CODE)) OPTIONAL_LANGUAGES = tuple(lang for lang in LANGUAGES if lang not in OBLIGATORY_LANGUAGES) + + +TAXONOMIES = ( + ('topics', _('topics')), + ('types', _('types')), +)