On Sep 19, 12:45 pm, Steve Holden <[EMAIL PROTECTED]> wrote:
> That's annoying: now *I* have a (named) pattern that won't reverse with
> the URL tag: specifically, the edit profile URL from the Google code
> profiles app:
>
>                        url(r'^edit/$',
>                            views.edit_profile,
>                            name='profiles_edit_profile'),
>
> When I use
>
>  <a href="http://{{ host }}{% url profiles_edit_profile %}">
>
> in my template Django tells me
>
>   File "/home/sholden/Django-1.0/django/core/urlresolvers.py", line 252,
> in reverse
>     *args, **kwargs)))
>   File "/home/sholden/Django-1.0/django/core/urlresolvers.py", line 241,
> in reverse
>     "arguments '%s' not found." % (lookup_view, args, kwargs))
> NoReverseMatch: Reverse for 'PyTeach.'profiles_edit_profile'' with
> arguments '()' and keyword arguments '{}' not found.
>

Does that profiles_edit_profile function exist somewhere? Is that
urls.py in an application that is listed in your INSTALLED_APPS
setting?

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to