ADMIN_TOOLS_MENU is rsplited

37 views
Skip to first unread message

James

unread,
Nov 7, 2011, 10:25:52 AM11/7/11
to django-admin-tools
Hi all,

It's a good practice to avoid hard-coding the project name in
settings. For example, ROOT_URLCONF can be 'urls' instead of
'projectname.urls'.

However, this is not possible with ADMIN_TOOLS_MENU, because of the
split that happens here:
https://bitbucket.org/izi/django-admin-tools/src/889114a2b923/admin_tools/menu/utils.py#cl-19

The exception raised is: Caught ValueError while rendering: need more
than 1 value to unpack

Is it possible to support non-dotted strings in ADMIN_TOOLS_MENU too ?

Regards

James

unread,
Nov 7, 2011, 10:28:20 AM11/7/11
to django-admin-tools
My bad, please ignore the above message which contains false
statements. The split is actually for the class name which i omited.

Regards
Reply all
Reply to author
Forward
0 new messages