1. Kai Diefenbach
  2. django-lfc
  3. Issues
Issue #33 resolved

adminmedia used in management panel are not accessible for all users

Maciej Wiśniowski
created an issue

Management panel (manage/base.html) uses link to /admin/jsi18n. This address is not accessible for users that are not allowed to log in into admin area but can login to management panel. This causes JavaScript errors and doesn't load translations.

Comments (3)

  1. Maciej Wiśniowski reporter

    Seems that it is enough to add 'django.conf' to message catalog (urls.py), like:

    js_info_dict = {
        'packages': ('django.conf'),
    urlpatterns = patterns(
        (r'^jsi18n/$', 'django.views.i18n.javascript_catalog', js_info_dict),

    and then use this script in templates: <pre> <script type="text/javascript" src="{% url django.views.i18n.javascript_catalog %}"></script> </pre>

  2. Log in to comment