- Language: en
34 results for template in version 3.2
-
Middleware
- … template_response() process_template_response ( request , response ) request is an HttpRequest object. response is the TemplateResponse …
-
Database access optimization
- … template code - the template system does not allow use of parentheses, but will call callables …
-
Formsets
- … template, you can include all the management data by rendering {{ my_formset.management_form }} (substituting the name …
-
Creating forms from models
- … template There are three ways to render a formset in a Django template. First, you can let the formset …
-
Testing tools
- … template in the list, use template.name to get the template’s file name, if the template …
-
Django shortcut functions
- … template_name The full name of a template to use or sequence of template names …
-
Introduction to class-based views
- … template_name attribute to return a TemplateResponse object (a behavior defined in the TemplateResponseMixin ). Mixins …
-
Class-based views
- … template name: # some_app/views.py from django.views.generic import TemplateView class AboutView ( TemplateView ): template_name = "about.html …
-
Form handling with class-based views
- … templates for CreateView and UpdateView , you can set either template_name or template_name_suffix …
-
Writing views
- … template named 404.html and place it in the top level of your template tree. This …