On Feb 1, 2008 12:17 AM, Eric Abrahamsen <[EMAIL PROTECTED]> wrote:
> Strange, I had thought that wasn't working, but I guess it must be. So
> with that change this gets the right URL:
> reverse('entry',
> kwargs={'translatorName':'johndoe','entryName':'blogentry'})
>
> But trying to use the entry view, which requires two arguments, simply
> gets a "Could not parse remainder of argument" for whatever comes
> after the first word, whether I use positional or named arguments.
>
> And still, neither of these produces anything:
> {% url translator translatorName=johndoe %}
> {% url translator johndoe %}
>
> URL is meant to be able to take multiple arguments, isn't it?


I am having this issue as well, I can user reverse('NAME') and it
shows the right url, but the {% url NAME %} fails. Also if I move the
entry down the list in my root url.py file it breaks the ability for
all urls listed above it to be traced with {% url %}

the following make it so I cannot use the {% url %} tag for any URL
    (r'^modules/', include('apps.modular.urls')),
    (r'^accounts/', include('apps.registration.urls')),
    (r'^news/', include('apps.news.urls')),
    (r'^blog/', include('apps.blog.urls')),
    (r'^gallery/', include('apps.photos.urls')),
    (r'^undo/', include('apps.undo.urls')),
    (r'^openid/', include('apps.openid.urls')),

but if I move the openid entry to the top everything except the openid
works. Reguardless of the order when I call reverse they all work.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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