It is flask style urls for django.
# app/urls.py or where-ever you want really. from django_urls import UrlManager app_urls = UrlManager(views_root='dotted.path.to.app.views.module') app_urls.extend(extra_urls_list)
# app/views/foo.py from app.urls import app_urls # the bigger the importance higher in the list it goes class MyView(View): ... def my_view(request): ...
# project/urls.py from django.urls import include, path from app.urls import app_urls url_patterns = [ path('some_path/', include(app_urls.url_patterns)) ]
That's it, not too much setup, right?