Hello,
I am looking for the admin site url name to be included as a link in a home page template.
I looked at contrib/admin/sites.py
AdminSite sets
self.name which is then passed to
# Admin-site-wide views.
urlpatterns = patterns('',
url(r'^$',
wrap(self.index),
name='%sadmin_index' %
self.name),
What is the
self.name passed to AdminSite constructor. I tried
<li><a href="{% url admin_index %}"> Admin </a></li>
It throws a template syntax error.
Exception Value:
Caught an exception while rendering: Reverse for 'admin_index' with arguments '()' and keyword arguments '{}' not found.Any help much appreciated.
Thanks
Umapathy
--The browser you can trust - Firefox 3