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 CSRF token won't show

Here's the relevant snippet of HTML in the template: <form action="/submit_text/" method="post"> {% csrf_token %} {% include "…

django django-templates django-csrf
How to add attribute '_meta' to an object?

I'm trying to add the django-voting app to my project. I don't know how to use it in my templates, …

django django-models django-templates django-voting
Django settings.py variables in templates

I'm encountering a very strange error. I have an app ID defined in my settings.py file like so: CARDSPRING_…

python django django-templates django-settings
django renders a blank page

Firstly, I'd like to admit, I'm a completely new to Django. I'm learning as best as I can. I am …

django django-templates django-views django-inheritance
save multiple uploaded files in django

I want to upload and save multiple files in my application, I have <input type="text" name="name" value="" /&…

python django django-forms django-templates django-file-upload
How can I tell Django templates not to parse a block containing code that looks like template tags?

I've got some html files that include templates to be used by jQuery.tmpl. Some tmpl tags (like {{if...}}) look …

django django-templates jquery-templates
Submit button no longer works with django crispy forms

I've added bootstrap to my pages and trying to get django crispy forms to work. Really all I've done is …

django django-templates django-crispy-forms
template tag 'add' requires 2 arguments, 1 provided

I have used add before but getting this strange error this time: django.template.exceptions.TemplateSyntaxError: add requires 2 arguments, 1 provided …

django django-templates django-widget-tweaks
Generate PDF from html template and send via Email in Django

I'm trying to generate a pdf file from an HTML template using Weasyprint python package and I need to send …

python django django-templates weasyprint python-pdfkit
How to render images on Django template

See my GitHub https://github.com/rg3915/gallery How to render images on Django template? But he is returning: Gallery …

django-templates imagefield