django-decorator-include
Include Django URL patterns with decorators
Decision gist · record as of 2026-08-14
Yes. This is a lightweight, actively maintained utility that solves a real Django routing problem with no security vulnerabilities, permissive licensing, and low install friction. Use it when you have groups of views that need the same decorator logic.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Installs with minimal friction—only Django and importlib_metadata as runtime dependencies.
- Actively maintained with a recent release; repository shows steady activity.
License · maintenance · safety
BSD-2-Clause (permissive) — BSD-2-Clause is permissive; you can use, modify, and distribute this package freely in commercial and open-source projects with minimal restrictions.
last release 2026-06-23 (52 days) · last repo commit 2026-06-25 · 81 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 189,472 downloads/mo, #9,928 on PyPI
Alternatives
Verify before relying
pip install django-decorator-include
from django.urls import path
from django.contrib.auth.decorators import login_required
urlpatterns = [
path('secret/', include_with_decorators(login_required, 'myapp.urls')),
]- Whether the package works with all listed Django versions (2.2 through 6.1) without additional setup or configuration.
What it is and what it does
django-decorator-include is a utility that extends Django's URL routing to apply decorators to entire included URL configurations at once. Instead of decorating individual views, you pass one or more decorators alongside the URL module you want to include, and all views in that module inherit those decorators in the order you specify.
It's useful when you have a set of related views that all need the same protection or behavior—such as a login requirement or permission check—without decorating each view individually. The package depends only on Django and importlib_metadata, has no known vulnerabilities, and supports Django versions from 2.2 through 6.1.
Use it for
- Protect an entire section of your site by wrapping its URL include with login_required and permission decorators.
- Apply custom authentication logic to a group of endpoints without repeating the decorator on every view.
- Enforce role-based access control on a module of views by stacking multiple permission-check decorators in one include.
- Add request logging or rate-limiting to a subsection of your URL configuration by including it with a custom decorator.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
This is a lightweight, actively maintained utility that solves a real Django routing problem with no security vulnerabilities, permissive licensing, and low install friction. Use it when you have groups of views that need the same decorator logic.
Install
django-decorator-include on PyPI
Before you install
Installs with minimal friction—only Django and importlib_metadata as runtime dependencies. Actively maintained with a recent release; repository shows steady activity.
License in practice
BSD-2-Clause is permissive; you can use, modify, and distribute this package freely in commercial and open-source projects with minimal restrictions.
Quickstart
pip install django-decorator-include
from django.urls import path
from django.contrib.auth.decorators import login_required
urlpatterns = [
path('secret/', include_with_decorators(login_required, 'myapp.urls')),
]
Verify before relying
- Whether the package works with all listed Django versions (2.2 through 6.1) without additional setup or configuration.
Package facts
| License | BSD-2-Clause permissive |
| Python support | Supports the current Python release >=3.6 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesDjangoimportlib_metadata |
| Maintenance | Actively maintained 52 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 189,472 / month, #9,928 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableFramework :: DjangoFramework :: Django :: 2.2Framework :: Django :: 3.0Framework :: Django :: 3.1Framework :: Django :: 3.2Framework :: Django :: 4.0Framework :: Django :: 4.1Framework :: Django :: 4.2Framework :: Django :: 5.0Framework :: Django :: 5.1Framework :: Django :: 5.2Framework :: Django :: 6.0Framework :: Django :: 6.1Intended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.15Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Internet :: WWW/HTTP |
Evidence: django_decorator_include-3.5-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “django url decorators”
- django-decorator-includeApplies decorators to Django URL patterns included from other…
- drf-extensionsProvides mixins, decorators, and utilities that extend Django REST…
- strawberry-graphql-djangoGenerates GraphQL types, queries, mutations, and resolvers…
Give your agent the search over MCP, or paste the wish link into any chat.
More WWW/HTTP packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.
Install it if you are building new projects or modernizing existing ones that rely on HTTP.
A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.
aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.
Install it if you need async HTTP client or server capabilities in asyncio-based applications.
See also django-braces · django-admin-extra-buttons · django-jinja · django-robots · django-configurations · django-permissions-policy · botoinator · django-upgrade · django-ninja-extra · google_api