Top "Django-templates" questions

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

Any way to make {% extends '...' %} conditional? - Django

I would like to share a template between AJAX and regualr HTTP calls, the only difference is that one template …

python ajax django django-templates
Django MultiWidget Phone Number Field

I want to create a field for phone number input that has 2 text fields (size 3, 3, and 4 respectively) with the common "(" ")" "…

python django-templates django-forms django-widget django-models
Django - http code 304, how to workaround in the testserver?

I have a CSS code that generates http 304: [08/Nov/2011 15:22:07] "GET /site_media/logo1.gif HTTP/1.1" 304 0 How can I get a …

django django-templates http-status-code-304
How to work with time picker widget in Django template?

I am working on a Django based Application, and i stuck in some place where i want to save a …

javascript django datetime django-templates django-widget
Advanced Django Template Logic

I'm not sure if this is really easy and I just glanced over it in the documentation, or if this …

django templates django-templates boolean logic
Django - print all objects attribute values

HTML <thead> <tr> {% for field in fields %} <th>{{ field }}</th> {% endfor %} </…

django django-models django-templates django-views django-context
How to test custom template tags in Django?

I'm adding a set of template tags to a Django application and I'm not sure how to test them. I've …

django django-templates django-testing
Render one queryset into 2 div columns (django template)

Is there a good way to render the enumeration of a queryset into two div columns? Using 960 grid, I've got …

django django-templates 960.gs
NoReverseMatch with keyword argument uidb64 with Django 2.0

I can't understand why my code doesn't work. Before it worked, but now, when I run the server and test, …

python django python-3.x django-templates django-2.0
Displaying a timedelta object in a django template

I'm having trouble getting my django template to display a timedelta object consistently. I tried using the time filter in …

python django django-templates timedelta