Ticket #7376: topics-auth.diff
File topics-auth.diff, 1.4 KB (added by , 16 years ago) |
---|
-
docs/topics/auth.txt
29 29 Authentication support is bundled as a Django application in 30 30 ``django.contrib.auth``. To install it, do the following: 31 31 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`.) 33 36 2. Run the command ``manage.py syncdb``. 34 37 35 38 Note that the default :file:`settings.py` file created by 36 :djadmin:`django-admin.py startproject` includes ``'django.contrib.auth'`` in37 :setting:`INSTALLED_APPS` for convenience. If your :setting:`INSTALLED_APPS` 38 already contains ``'django.contrib.auth'``, feel free to run39 :djadmin:`django-admin.py startproject` includes ``'django.contrib.auth'`` and 40 ``'django.contrib.contenttypes'`` in :setting:`INSTALLED_APPS` for convenience. 41 If your :setting:`INSTALLED_APPS` already contains these apps, feel free to run 39 42 :djadmin:`manage.py syncdb` again; you can run that command as many times as 40 43 you'd like, and each time it'll only install what's needed. 41 44