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, creating a custom 500/404 error page

Following the tutorial found here exactly, I cannot create a custom 500 or 404 error page. If I do type in a …

python django django-templates http-status-code-404
Does Python have a toString() equivalent, and can I convert a db.Model element to String?

I'm writing a ToDo list app to help myself get started with Python. The app is running on GAE and …

python google-app-engine django-templates
django templates: include and extends

I would like to provide the same content inside 2 different base files. So I'm trying to do this: page1.html: {% …

python django django-templates
How to add url parameters to Django template url tag?

In my view to get url parameters like this: date=request.GET.get('date','') In my url I am …

django django-templates
Using {% url ??? %} in django templates

I have looked a lot on google for answers of how to use the 'url' tag in templates only to …

django django-templates django-urls
Rendering a template variable as HTML

I use the 'messages' interface to pass messages to user like this: request.user.message_set.create(message=message) I …

django django-templates
Can I access constants in settings.py from templates in Django?

I have some stuff in settings.py that I'd like to be able to access from a template, but I …

django django-templates django-settings
How do I call a Django function on button click?

I am trying to write a Django application and I am stuck at how I can call a view function …

python django django-templates django-views
How can I get the domain name of my site within a Django template?

How do I get the domain name of my current site from within a Django template? I've tried looking in …

python django django-templates
How do I display the value of a Django form field in a template?

I have a form with an email property. When using {{ form.email }} in case of some validation error, Django still …

django django-templates