Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion docs/howto/contrib-apps.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,23 @@
Configuring Django's contrib apps
=================================

Generally, Django's contribs app work out of the box, but here are some
Generally, Django's contrib apps work out of the box, but here are some
required adjustments.

Apps with models
================

Each contrib app that has models that use :class:`~django.db.models.AutoField`
(:mod:`~django.contrib.admin`, :mod:`~django.contrib.auth`,
:mod:`~django.contrib.contenttypes`, :mod:`~django.contrib.flatpages`,
:mod:`~django.contrib.redirects`, and :mod:`~django.contrib.sites`) must:

#. Be configured with an ``AppConfig`` that specifies
``default_auto_field = "django_mongodb_backend.fields.ObjectIdAutoField"``.
See :ref:`specifying the-default-pk-field`.
#. Have migrations that use :class:`.ObjectIdAutoField`. See
:ref:`configuring-migrations`.

``contrib.sites``
=================

Expand Down
2 changes: 2 additions & 0 deletions docs/intro/configure.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ Each app reference in the :setting:`INSTALLED_APPS` setting must point to the
corresponding ``AppConfig``. For example, instead of ``'django.contrib.admin'``,
the template uses ``'<project_name>.apps.MongoAdminConfig'``.

.. _configuring-migrations:

Configuring migrations
======================

Expand Down
Loading