django-authority/docs/configuration.txt
2009-07-12 22:03:24 +02:00

51 lines
No EOL
1.1 KiB
Text

.. _configuration:
=============
Configuration
=============
settings.py
===========
To enable django-authority just need to add the package to your
``INSTALLED_APPS`` setting within your ``settings.py``::
# settings.py
INSTALLED_APPS = (
...
'authority',
)
Make sure your ``settings.py`` contains the following settings to enable the
context processors::
TEMPLATE_CONTEXT_PROCESSORS = (
'django.core.context_processors.auth',
'django.core.context_processors.debug',
'django.core.context_processors.i18n',
'django.core.context_processors.media',
'django.core.context_processors.request',
)
urls.py
=======
You also have to modify your root URLConf (e.g. ``urls.py``) to include the
app's URL configuration and automatically discover all the permission
classes you defined::
import authority
authority.autodiscover()
urlpatterns += patterns('',
(r'^authority/', include('authority.urls')),
)
That's all (for now).
.. index::
single: urls.py
single: settings.py
single: autodiscover