mirror of
https://github.com/Hopiu/wagtail-modeltranslation.git
synced 2026-05-23 06:15:52 +00:00
15 lines
421 B
Python
Executable file
15 lines
421 B
Python
Executable file
# coding: utf-8
|
|
from django.conf.urls import include, url
|
|
from django.conf.urls.i18n import i18n_patterns
|
|
from django.views.i18n import set_language
|
|
from wagtail.wagtailcore import urls as wagtail_urls
|
|
|
|
urlpatterns = [
|
|
url(r'^set_language/$', set_language, {},
|
|
name='set_language'),
|
|
url(r'^i18n/', include('django.conf.urls.i18n')),
|
|
]
|
|
|
|
urlpatterns += i18n_patterns(
|
|
url(r'', include(wagtail_urls)),
|
|
)
|