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

'tuple' object has no attribute 'rsplit'

Dmitry Postyoalko
created an issue

There is an error, when i trying to use menu.

AttributeError at /admin/

'tuple' object has no attribute 'rsplit'

Request Method: GET Request URL: http://127.0.0.1:8000/admin/ Django Version: 1.5.3 Exception Type: AttributeError Exception Value:

'tuple' object has no attribute 'rsplit'

Exception Location: /Volumes/7200RPM-250B/dscn/.virtualenvs/crm/lib/python2.7/site-packages/admin_tools/menu/utils.py in _get_menu_cls, line 25 Python Executable: /Volumes/7200RPM-250B/dscn/.virtualenvs/crm/bin/python Python Version: 2.7.4 Python Path:

['/Volumes/7200RPM-250B/dscn/.virtualenvs/crm/bin/crm', '/Volumes/7200RPM-250B/dscn/.virtualenvs/crm/lib/python2.7/site-packages/distribute-0.6.34-py2.7.egg', '/Volumes/7200RPM-250B/dscn/.virtualenvs/crm/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg', '/Volumes/7200RPM-250B/dscn/.virtualenvs/crm/lib/python27.zip', '/Volumes/7200RPM-250B/dscn/.virtualenvs/crm/lib/python2.7', '/Volumes/7200RPM-250B/dscn/.virtualenvs/crm/lib/python2.7/plat-darwin', '/Volumes/7200RPM-250B/dscn/.virtualenvs/crm/lib/python2.7/plat-mac', '/Volumes/7200RPM-250B/dscn/.virtualenvs/crm/lib/python2.7/plat-mac/lib-scriptpackages', '/Volumes/7200RPM-250B/dscn/.virtualenvs/crm/lib/python2.7/lib-tk', '/Volumes/7200RPM-250B/dscn/.virtualenvs/crm/lib/python2.7/lib-old', '/Volumes/7200RPM-250B/dscn/.virtualenvs/crm/lib/python2.7/lib-dynload', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', '/Volumes/7200RPM-250B/dscn/.virtualenvs/crm/lib/python2.7/site-packages']

Server time: Сбт, 21 Сен 2013 07:46:20 -0500 Error during template rendering

In template /Volumes/7200RPM-250B/dscn/.virtualenvs/crm/lib/python2.7/site-packages/admin_tools/menu/templates/admin/base_site.html, error at line 10 'tuple' object has no attribute 'rsplit' 1 {% extends "admin/base.html" %} 2 {% load i18n admin_tools_menu_tags %} 3
4 {% block title %}{{ title }} | {% trans 'Django site admin' %}{% endblock %} 5
6 {% block extrastyle %} 7 {{ block.super }} 8 {% if user.is_active and user.is_staff %} 9 {% if not is_popup %} 10 {% admin_tools_render_menu_css %} 11 {% endif %} 12 {% endif %} 13 {% endblock %} 14
15 {% block branding %} 16 <h1 id="site-name">{% trans 'Django administration' %}</h1> 17 {% endblock %} 18
19 {% block nav-global %} 20 {% if user.is_active and user.is_staff %}


Without menu admin-tools works great, but it is not allowing me to get to admin after i made settings: ADMIN_TOOLS_MENU = ('xxx.menu.CustomMenu',)

Django is latest 1.5.3 and admin-tools '0.5.1' too.

here is a screenshot 'tuple' object has no attribute 'rsplit'

Comments (3)

  1. Log in to comment