Skip to content
Open
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
14 changes: 14 additions & 0 deletions docs/howto/contrib-apps.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,20 @@ Configuring Django's contrib apps
Generally, Django's contribs app work out of the box, but here are some
required adjustments.

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

Each contrib app that has models (:mod:`~django.contrib.admin`,
:mod:`~django.contrib.auth`, :mod:`~django.contrib.contenttypes`,
:mod:`~django.contrib.flatpages`, :mod:`~django.contrib.redirects`,
:mod:`~django.contrib.sessions`, 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