On Sun, May 8, 2011 at 6:42 AM, Thomas Weholt <thomas.weh...@gmail.com>wrote:

> I've read
> http://docs.djangoproject.com/en/dev/ref/contrib/admin/#reversing-admin-urls
> ,
> but cannot for the life of me find a way to use reverse to get the url
> of the index page for my app.
>
>
The index page for an app has the url name 'app_list' with argument app
name, for example:

Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from django.core.urlresolvers import reverse
>>> reverse('admin:app_list', args=('polls',))
'/admin/polls/'
>>>

Karen
-- 
http://tracey.org/kmt/

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to