1. David Jean Louis
  2. django-admin-tools
  3. Issues
Issue #7 invalid

TemplateSyntaxError at /admin/

created an issue

Hi - I just installed the 0.1.1 version using easy_install, and configured the app as per the docs, and I'm receiving the following error:

TemplateSyntaxError at /admin/

Caught an exception while rendering: 'admin' is not a registered namespace

The error occurs in one of the menu template tags on the last line below: {% admin_tools_render_menu_css %}



{% extends "admin/base.html" %} {% load i18n admin_tools_menu_tags %} {% block title %}{{ title }} | {% trans 'Django site admin' %}{% endblock %}

{% block extrastyle %} {{ block.super }} {% admin_tools_render_menu_css %} }}}

Any idea what might be going on here? I don't see anyone else having similar issues.



Comments (6)

  1. robhorvath reporter

    I'm using Django 1.1.1, and I am attempting to add the admin tools to an already working Django installation. The Django admin works fine if I remove the admin_tools entries.

  2. David Jean Louis repo owner

    after a quick research, it looks like you need to configure the urls in the "django 1.1" way, e.g.:

    url(r'^admin/', include(admin.site.urls))

    can you try this and see if it works ? if it's the case, I'll have to update the docs...

  3. robhorvath reporter

    I want to add one more thing. I know it's bad practice, but I didn't have my MEDIA_URL configured in my settings.py, so the media from the admin_tools didn't appear until I stuck that in there.

  4. Log in to comment