Re: Django Template url mapping

2019-08-22 Thread Abu Yusuf
Your template name should be: template_name = "index.html" That's all. On Thu, Aug 22, 2019 at 12:55 PM RONAK JAIN wrote: > Hi > > I am new in Django I am doing struggle with add Django templates using by > inheritance. > > > so when I am trying within *Example:: index.html add inside the > b

Django Template url mapping

2019-08-21 Thread RONAK JAIN
Hi I am new in Django I am doing struggle with add Django templates using by inheritance. so when I am trying within *Example:: index.html add inside the blog.html but, *I am getting the direct blog.html, not index.html on the index page. so I used simply in index.html. *index.html:* {%.

django template {% url %}

2016-04-04 Thread 颜刚
i have this code in my template: {% for i in var %} {% for action in actions %} {{ action.name_short }} {% endfor %} {% endfor %} the value of action.url_alias is 'user-edit' i.id host 'account' ,that's what i want from table,i use django-hosts in my project,the error is that: Reverse fo

Re: django template {% url %}

2016-04-04 Thread 颜刚
yes,you are right,i have noticed that,but now i have a new error: i have this code in my template: {% for action in actions %} {{ action.name_short }} {% endfor %} the value of action.url_alias is 'user-edit' i.id host 'account' ,that's what i want value from table,i use django-hosts in

Re: django template {% url %}

2016-04-03 Thread Larry Martell
On Sun, Apr 3, 2016 at 11:50 AM, 颜刚 wrote: > > > i have this code in my template: > > {% for action in actions %} > > {{ action.name_short }} > > {% endfor %} > > but that's error: > > Exception Type: TemplateSyntaxError > Exception Value: > Could not parse the remainder: '{{' from '{{' > >

django template {% url %}

2016-04-03 Thread 颜刚
i have this code in my template: {% for action in actions %} {{ action.name_short }} {% endfor %} but that's error: Exception Type: TemplateSyntaxError Exception Value: Could not parse the remainder: '{{' from '{{' i want to use var in {% url {{}} %},can i? anyone can help me ? -- Yo