External packages
  • References/Python/Django/Guides

Django ships with a variety of extra, optional tools that solve common problems (contrib.*). For easier maintenance and to trim the size of the codebase, a few

2025-01-10 15:47:30
gis.db.models.functions.NumPoints
  • References/Python/Django/API/Geographic Database Functions

class NumPoints(expression, **extra) Availability: MySQL, PostGIS, Oracle, SpatiaLite Accepts

2025-01-10 15:47:30
views.generic.detail.SingleObjectTemplateResponseMixin.template_name_suffix
  • References/Python/Django/API/Single object mixins

template_name_suffix The suffix to append to the auto-generated candidate template name. Default suffix is _detail

2025-01-10 15:47:30
db.models.Field.unique_for_month
  • References/Python/Django/API/Models/Model field reference

Field.unique_for_month Like unique_for_date, but requires the field to be unique with respect to the month.

2025-01-10 15:47:30
auth.models.PermissionsMixin.has_perm()
  • References/Python/Django/Guides

has_perm(perm, obj=None) Returns True if the user has the specified permission, where perm is in the

2025-01-10 15:47:30
http.HttpResponse.closed
  • References/Python/Django/API/Request and response objects

HttpResponse.closed True if the response has been closed.

2025-01-10 15:47:30
conf.urls.url()
  • References/Python/Django/API/django.conf.urls utility functions

url(regex, view, kwargs=None, name=None) [source] urlpatterns should be a list

2025-01-10 15:47:30
db.backends.base.schema.BaseDatabaseSchemaEditor.alter_db_table()
  • References/Python/Django/API/SchemaEditor

BaseDatabaseSchemaEditor.alter_db_table(model, old_db_table, new_db_table) [source] Renames

2025-01-10 15:47:30
views.generic.edit.ProcessFormView.put()
  • References/Python/Django/API/Editing mixins

put(*args, **kwargs) The PUT action is also handled and just passes all parameters through to post()

2025-01-10 15:47:30
admin.ModelAdmin.has_module_permission()
  • References/Python/Django/API/contrib packages/The Django admin site

ModelAdmin.has_module_permission(request) Should return True if displaying the module on the admin index page and

2025-01-10 15:47:30