Code

Ticket #7376: topics-auth.diff

File topics-auth.diff, 1.4 KB (added by arien, 6 years ago)

Mention that django.contrib.auth.models.Permission depends on django.contrib.contenttypes

Line 
1Index: docs/topics/auth.txt
2===================================================================
3--- docs/topics/auth.txt        (revision 8976)
4+++ docs/topics/auth.txt        (working copy)
5@@ -29,13 +29,16 @@
6 Authentication support is bundled as a Django application in
7 ``django.contrib.auth``. To install it, do the following:
8 
9-    1. Put ``'django.contrib.auth'`` in your :setting:`INSTALLED_APPS` setting.
10+    1. Put ``'django.contrib.auth'`` and ``'django.contrib.contenttypes'`` in
11+       your :setting:`INSTALLED_APPS` setting.
12+       (The :class:`~django.contrib.auth.models.Permisson` model in
13+       :mod:`django.contrib.auth` depends on :mod:`django.contrib.contenttypes`.)
14     2. Run the command ``manage.py syncdb``.
15 
16 Note that the default :file:`settings.py` file created by
17-:djadmin:`django-admin.py startproject` includes ``'django.contrib.auth'`` in
18-:setting:`INSTALLED_APPS` for convenience. If your :setting:`INSTALLED_APPS`
19-already contains ``'django.contrib.auth'``, feel free to run
20+:djadmin:`django-admin.py startproject` includes ``'django.contrib.auth'`` and
21+``'django.contrib.contenttypes'`` in :setting:`INSTALLED_APPS` for convenience.
22+If your :setting:`INSTALLED_APPS` already contains these apps, feel free to run
23 :djadmin:`manage.py syncdb` again; you can run that command as many times as
24 you'd like, and each time it'll only install what's needed.
25