template syntax error

2018-03-04 Thread harsh sharma
i created a model in which i have an image filed but when ever i am trying to get an uploaded image on the in my model.py image = models.ImageField(upload_to='static/pictures',) setting.py STATIC_URL = '/static/' STATICFILES_DIRS = [ os.path.join(BASE_DIR, "static", "./static"),

Re: Template Syntax Error

2013-09-25 Thread SHANTANU SRIVASTAVA
Thanks ! The urls.py can be viewed here : http://dpaste.com/hold/1394929/ On Tuesday, September 24, 2013 1:10:57 AM UTC+5:30, Alagappan Ramu wrote: > > Looks like the is an issue in Django being able to resolve URLs in your > application. Can you paste your urls.py for more info. > > > Regards,

Re: Template Syntax Error

2013-09-23 Thread Alagappan
Looks like the is an issue in Django being able to resolve URLs in your application. Can you paste your urls.py for more info. Regards, Alagappan R Twitter: @_alagappan Thanks & Regards, Alagappan Ramu +1 (716) 598 2730 Graduate Student in Computer Science

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
On Mon, Dec 3, 2012 at 7:31 AM, Loai Ghoraba <loai1...@gmail.com> wrote: > 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,

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

Re: Template Syntax Error: url config module not found

2009-11-09 Thread m3mitsuppe
ot;portfolio" one. It's > of course the interesting part where a photo portfolio is shown. > > When I click on that link, Django issues a Template Syntax Error > saying that the module "tina.urls" cannot be importet. That's kind of > strange, because it must h

Template Syntax Error: url config module not found

2009-11-08 Thread m3mitsuppe
en I click on that link, Django issues a Template Syntax Error saying that the module "tina.urls" cannot be importet. That's kind of strange, because it must have been imported this exact module for rendering the home page and the other pages that do work. As this happens during template