Writing database migrations
  • References/Python/Django/Guides: How-tos

This document explains how to structure and write database migrations for different scenarios you might encounter. For introductory material on migrations, see the

2025-01-10 15:47:30
template.Library.inclusion_tag()
  • References/Python/Django/Guides: How-tos

django.template.Library.inclusion_tag() Another common type of template tag is the type that displays some data by rendering

2025-01-10 15:47:30
core.files.storage.get_valid_name()
  • References/Python/Django/Guides: How-tos

get_valid_name(name) Returns a filename suitable for use with the underlying storage system. The name argument

2025-01-10 15:47:30
Running Django on Jython
  • References/Python/Django/Guides: How-tos

Jython is an implementation of Python that runs on the Java platform (JVM)

2025-01-10 15:47:30
core.management.BaseCommand.get_version()
  • References/Python/Django/Guides: How-tos

BaseCommand.get_version() [source] Returns the Django version, which should be correct for

2025-01-10 15:47:30
How to deploy with WSGI
  • References/Python/Django/Guides: How-tos

Django’s primary deployment platform is WSGI, the Python standard for web servers

2025-01-10 15:47:30
template.defaultfilters.stringfilter()
  • References/Python/Django/Guides: How-tos

django.template.defaultfilters.stringfilter() If you’re writing a template filter that only expects a string as the first argument

2025-01-10 15:47:30
core.management.BaseCommand.check()
  • References/Python/Django/Guides: How-tos

BaseCommand.check(app_configs=None, tags=None, display_num_errors=False) [source] Uses the

2025-01-10 15:47:30
views.decorators.debug.sensitive_post_parameters()
  • References/Python/Django/Guides: How-tos

sensitive_post_parameters(*parameters) [source] If one of your views receives an

2025-01-10 15:47:30
Upgrading Django to a newer version
  • References/Python/Django/Guides: How-tos

While it can be a complex process at times, upgrading to the latest Django version has several benefits: New features and

2025-01-10 15:47:30