Top "Django-templates" questions

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

update value of a variable inside a template - django

I have seen enough number of examples that allow me to declare a new variable inside a template and set …

django django-templates django-template-filters
Display Django values() on Foreign Key in template as object instead of its id

I have a queryset in Django that calls Model.objects.values('item')... where 'item' is a Foreign Key. class Words(…

django django-templates django-aggregation
PyCharm code inspection complains template file not found, how to fix?

I'm new to PyCharm, and I'm trying to use it for Django development. My app is structured like this: bs3…

django django-templates django-views pycharm
Django : How to override the CSRF_FAILURE_TEMPLATE

If csrf checking fails, Django display a page with 403 error. It seems to me that this error can occur in …

python django django-templates django-csrf
How To Use Django Cycle Tag

This hopefully is a pretty easy question. My endgoal is to be able to view my database entries in a …

python django django-templates django-views django-template-filters
How to redirect users to a specific url after registration in django registration?

So I am using django-registration app to implement a user registration page for my site. I used Django's backends.simple …

django django-templates django-views django-registration
How do I calculate the time difference in a Django template

I have a model with two TimeFields. I want to show the time difference in a template (ie, 27 minutes). I …

django django-templates django-filter
django-taggit - how do I display the tags related to each record

I'm using django-taggit on one of my projects and I'm able to save and tie the tags with specific records. …

django django-templates django-views django-taggit
Django manytomany in template format

In one of my models I have a categories field that is a manytomany configuration. I was wondering how to …

django django-templates django-template-filters
User permissions for Django module

I'm having a small issue with my permissions in my Django template. I'm trying to, based on permissions, show an …

python django django-templates django-views django-permissions