Top "Django-templates" questions

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

using django session inside templates

# views.py def like(request,option="food",restaurant = 1): if request.is_ajax: like = '%s_like' % str(option) if 'restaurants' …

python django django-templates django-sessions
App engine default Django version change

Since app engine 1.4.2 was released, I am getting warnings like this in my production logs: You are using the default …

google-app-engine django-templates
{% load static %} and {% load staticfiles %}: which is preferred?

I'm not sure what the difference is, it seems like both of them are working. I googled around, and seems …

django django-templates django-staticfiles django-static
Configuring django settings to work with 1.4.1. Loading template error

Here is the error I got: ImproperlyConfigured: Error importing template source loader django.template.loaders.filesystem.load_template_source: "'module' …

python django django-templates osqa
TemplateSyntaxError 'staticfiles' is not a valid tag library'

I'm having a really strange issue trying to get the staticfiles taglib working in my application. I'm essentially getting the …

django django-templates django-staticfiles
django+ send email in html with django-registration

im using django-registration, all is fine, the confirmation email was sending in plain text, but know im fixed and is …

django email django-templates django-registration
Django - template context processors - breaking my app

I was trying to set up a template context processor like this article mentions so that I could provide information …

python django django-templates django-settings
QuillJS doesn't work with textarea

I am trying to use QuillJS on a specific form field in my Django 1.10 template as follows: <link href="…

django django-templates quill
Accessing the object in a django admin template

I'm overriding the change_form.html template and want to display links to other related objects. When overriding an admin …

django django-admin django-templates
Getting objects.all() reverse() or descending order

In Django, calling object.manytomany.all().reverse(), and its template equivalent, object.manytomany.all.reverse, don't seem to work for …

django django-templates many-to-many manytomanyfield django-orm