[Django]-Django – set_language view giving me a "Page not found" error

6👍

Mezzanine’s urlpatterns include a “catch all” for pages, so anything underneath it will never be found. To get your patterns working you simply need to swap the last two patterns in your urls.py to look like:

urlpatterns += patterns("",
    ("^admin/", include(admin.site.urls)),
    (r'^i18n/', include('django.conf.urls.i18n')),
    ("^", include("mezzanine.urls")),
)
👤Steve

Leave a comment