{"id":23569,"library":"django-decorator-include","title":"django-decorator-include","description":"Include Django URL patterns with decorators. Version 3.3, supports Django 3.0+ and Python >=3.6. Release cadence is low (stable, maintained).","status":"active","version":"3.3","language":"python","source_language":"en","source_url":"https://github.com/twidi/django-decorator-include","tags":["django","url","decorator","include","routing"],"install":[{"cmd":"pip install django-decorator-include","lang":"bash","label":"pip"}],"dependencies":[{"reason":"Major dependency for URL routing","package":"Django","optional":false}],"imports":[{"note":"Wrong because the package is installed as decorator_include, not django_decorator_include.","wrong":"from django_decorator_include import decorator_include","symbol":"decorator_include","correct":"from decorator_include import decorator_include"}],"quickstart":{"code":"from django.urls import path, include\nfrom django.contrib.auth.decorators import login_required\nfrom decorator_include import decorator_include\n\nurlpatterns = [\n    path('private/', decorator_include(login_required, include('private_app.urls'))),\n]","lang":"python","description":"Include a set of URL patterns wrapped with a decorator (e.g., login_required)."},"warnings":[{"fix":"Use a decorator that works on view functions, e.g., login_required, not a middleware.","message":"The decorator is applied to each view function in the included URL patterns, not to the path itself. Ensure decorators are callable and compatible with the view signatures.","severity":"gotcha","affected_versions":"all"},{"fix":"Upgrade Django to >=3.0 or use django-decorator-include <3.0.","message":"Django 3.0+ required; older Django versions (2.x) are not supported from version 3.0 of this library.","severity":"deprecated","affected_versions":">=3.0"},{"fix":"Change `from django_decorator_include import decorator_include` to `from decorator_include import decorator_include`.","message":"In version 3.0, the import path changed from `django_decorator_include` to `decorator_include`.","severity":"breaking","affected_versions":">=3.0"}],"env_vars":null,"search_vec":"'3.0':15 '3.3':12 '3.6':18 'cadenc':20 'decor':3,10,27 'django':2,6,14,25 'django-decorator-includ':1 'includ':4,5,28 'low':22 'maintain':24 'pattern':8 'python':17 'releas':19 'rout':29 'stabl':23 'support':13 'url':7,26 'version':11","created_at":"2026-05-01T08:08:27.874117+00:00","updated_at":"2026-05-01T08:08:27.874117+00:00","problems":[{"fix":"Use `from decorator_include import decorator_include` instead.","cause":"Using the old import path after upgrading to v3.0+.","error":"ImportError: No module named 'django_decorator_include'"},{"fix":"Use `decorator_include(decorator, include('app.urls'))` rather than `decorator_include(decorator, path(...))`.","cause":"Passing a URL pattern directly without wrapping in `include()`.","error":"TypeError: decorator_include() got multiple values for argument 'view'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"3.3","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/twidi/django-decorator-include","docs":null,"changelog":null,"pypi":"https://pypi.org/project/django-decorator-include/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["web-framework"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-06-29","last_verified":"2026-06-29","next_check":"2026-07-29","install_tag":null}}