Correction, the syntax has changed between 1.4 and 1.5. You are now
required to quote the name in the url tag.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
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
this error is raised: Template syntax
> error: Could not parse the remainder: '-login' from 'accounts-login'
>
> But when I change the name of the url in both urls.py and base.html to
> something without the score '-', it works: like :accountslogin.
>
> So are scores banned in n
okay I found it:
it should be login
with quotes. Thanks.
On Mon, Dec 3, 2012 at 2:50 PM, Loai Ghoraba 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
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 wrote:
> {% url auth_login %}
--
open the site, this error is raised: Template syntax
> error: Could not parse the remainder: '-login' from 'accounts-login'
>
> But when I change the name of the url in both urls.py and base.html to
> something without the score '-', it works: like :accountslogin.
>
> So
Hi
I have this in my urls.py
url(r'^accounts/login/$', login,name="accounts-login")
and in a template base.html
login
And when I try to open the site, this error is raised: Template syntax
error: Could not parse the remainder: '-login' from 'accounts-login'
But when I chang
7 matches
Mail list logo