Monday, December 3, 2012

Re: Template syntax error: Could not parse the remainder: '-login' from 'accounts-login'

Except, the Django documentation states that url names with dashes are acceptable and the examples show url tags using unquoted names. It even says you can use any character you want:

The string used for the URL name can contain any characters you like. You are not restricted to valid Python names.

https://docs.djangoproject.com/en/1.4/topics/http/urls/#id2

On Monday, December 3, 2012 4:54:19 AM UTC-8, Loai Ghoraba wrote:
okay I found it:

it should be  <a href="{%url "accounts-login"%}?next=/somelink/">login</a> with quotes. Thanks.

On Mon, Dec 3, 2012 at 2:50 PM, Loai Ghoraba <loai...@gmail.com> wrote:
not working, giving: Reverse for '' with arguments '()' and keyword arguments '{}' not found.

also I want to know about this dash (sorry for using the term score in the previous post ) thing

On Mon, Dec 3, 2012 at 2:34 PM, Nikhil Verma <varma.n...@gmail.com> wrote:
{% url auth_login %}



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

No comments:

Post a Comment