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

2012-12-03 Thread donarb
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

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

2012-12-03 Thread donarb
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

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

2012-12-03 Thread Larry Martell
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

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

2012-12-03 Thread Loai Ghoraba
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

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

2012-12-03 Thread Loai Ghoraba
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 %} --

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

2012-12-03 Thread Nikhil Verma
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

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

2012-12-03 Thread Loai Ghoraba
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