Top "Django-templates" questions

Questions about the template engine of Django, which is intended to separate the presentation of a document from its data.

Django template conditional variable assignment

I want to assign a variable do different values depending on if a variable exists, is this possible? My non …

django django-templates django-1.4
Django - "Include" a block in several templates? Template tag? Something else?

I have a little statistics block that I want to be available in several places: the profile page of a …

django block django-templates
Can we append to a {% block %} rather than overwrite?

In my core.html I have a block labeled javascript. It would be great if I can append more lines …

django django-templates
how to split the string in django template?

i am trying to split the string in template using custom template filter. But i got an error TemplateSyntaxError at /…

django-templates django-filter django-1.5
Change Django Templates Based on User-Agent

I've made a Django site, but I've drank the Koolaid and I want to make an IPhone version. After putting …

python django django-templates mobile-website django-middleware
Passing a python list to django template

I want to display a list of things on my template. So I have a view to generate that list …

django django-templates django-views django-errors
how to check DEBUG true/false in django template - exactly in layout.html

I would like distinguish a look of some toolbar in layout.html depending if DEBUG = True or not. I am …

python django django-templates django-settings
overriding default templates of django-allauth

I used this social registration/signup library django allauth for a project of mine. How do i customize the default …

django django-forms django-templates django-formwizard django-allauth
Refresh <div> element generated by a django template

How do I refresh a certain element within a django template? Example: {% if object.some_m2m_field.all %} <…

javascript django html django-templates refresh
How to remove spaces from string in django template

How do you remove all spaces from a string value in a django template? For example <a href="www.…

django django-templates spaces django-filter