contrib
包¶Django aims to follow Python's "batteries included" philosophy. It ships with a variety of extra, optional tools that solve common web development problems.
This code lives in django/contrib in the Django distribution. This document
gives a rundown of the packages in contrib
, along with any dependencies
those packages have.
Including contrib
packages in INSTALLED_APPS
For most of these add-ons -- specifically, the add-ons that include either
models or template tags -- you'll need to add the package name (e.g.,
'django.contrib.redirects'
) to your INSTALLED_APPS
setting
and rerun manage.py migrate
.
如果你有一个关于 contrib
的功能的想法,请告诉我们!把它写成代码,并发布到 django-users 邮件列表。
5月 12, 2023