- Language: en
10 results for template in the development version
-
How to create custom template tags and filters
- … template register = template . Library () Alternatively, template tag modules can be registered through the 'libraries' argument …
-
How to override templates
- … templates directory, and add the template files to that folder: templates/ blog/ list.html post.html The template …
-
How to implement a custom template backend
- … template ( self , template_name ): try : return Template ( self . engine . get_template ( template_name )) except foobar …
-
How to create CSV output
- … template system Alternatively, you can use the Django template system to generate CSV. This is lower …
-
How to use Django’s CSRF protection
- … templates Django’s Jinja2 template backend adds {{ csrf_input }} to the context of all templates …
-
Deployment checklist
- … templates by creating the following templates in your root template directory: 404.html , 500.html , 403.html , and 400.html …
-
How to manage error reporting
- … template_path [source] Property that returns a pathlib.Path representing the absolute filesystem path to a template …
-
How to use Django’s Content Security Policy
- … TEMPLATES setting. This makes the generated nonce value available in the Django templates as the csp_nonce …
-
How to manage static files (e.g. images, JavaScript, CSS)
- … templates, use the static template tag to build the URL for the given relative path …
-
How to deploy static files
- … details on all the settings, commands, template tags, and other pieces included in django.contrib.staticfiles , see the staticfiles reference . …