Skip to main content

Include Django URL patterns with decorators.

Project description

Include Django URL patterns with decorators.

Original work from Jeff Kistler on


Installation from Source

Unpack the archive, cd to the source directory, and run the following command:

python install

Installation with pip

Assuming you have pip installed, run the following command to install from pypi:

pip install django-decorator-include

Installation with pip and git

Assuming you have pip and git installed, run the following command to install from the GitHub repository:

pip install git+git://


decorator_include is intended for use in URL confs as a replacement for the django.conf.urls.defaults.include function. It works in almost the same way as include, however the first argument should be either a decorator or an iterable of decorators to apply, in reverse order, to all included views. Here is an example URL conf:

from django.conf.urls.defaults import *
from django.contrib.auth.decorators import login_required

from decorator_include import decorator_include

urlpatterns = patterns('',
    url(r'^$', 'mysite.views.index', name='index'),
    url(r'^secret/', decorator_include(login_required, 'mysite.secret.urls'),

Project details

Release history Release notifications

History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


This version
History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django-decorator-include-0.1.tar.gz (3.2 kB) Copy SHA256 hash SHA256 Source None Mar 18, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page