django-admin-interface: Reverse for 'set_language' not found
I just installed this package on a new project im working on, howerver im getting the following error:
NoReverseMatch at /admin/
Reverse for 'set_language' not found. 'set_language' is not a valid view function or pattern name.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 15 (8 by maintainers)
@jforlenza-bnydc the language-chooser to work correctly needs:
settings.USE_I18N = True
settings.LANGUAGES
Thank you, that fixed the issue, I was using a boilerplate for experimenting and noticed it had some international options enabled
add this path(“i18n/”, include(“django.conf.urls.i18n”)), central urls.py