Ticket #7376: topics-auth.diff

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

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

  • docs/topics/auth.txt

     
    2929Authentication support is bundled as a Django application in
    3030``django.contrib.auth``. To install it, do the following:
    3131
    32     1. Put ``'django.contrib.auth'`` in your :setting:`INSTALLED_APPS` setting.
     32    1. Put ``'django.contrib.auth'`` and ``'django.contrib.contenttypes'`` in
     33       your :setting:`INSTALLED_APPS` setting.
     34       (The :class:`~django.contrib.auth.models.Permisson` model in
     35       :mod:`django.contrib.auth` depends on :mod:`django.contrib.contenttypes`.)
    3336    2. Run the command ``manage.py syncdb``.
    3437
    3538Note that the default :file:`settings.py` file created by
    36 :djadmin:`django-admin.py startproject` includes ``'django.contrib.auth'`` in
    37 :setting:`INSTALLED_APPS` for convenience. If your :setting:`INSTALLED_APPS`
    38 already contains ``'django.contrib.auth'``, feel free to run
     39:djadmin:`django-admin.py startproject` includes ``'django.contrib.auth'`` and
     40``'django.contrib.contenttypes'`` in :setting:`INSTALLED_APPS` for convenience.
     41If your :setting:`INSTALLED_APPS` already contains these apps, feel free to run
    3942:djadmin:`manage.py syncdb` again; you can run that command as many times as
    4043you'd like, and each time it'll only install what's needed.
    4144
Back to Top