About Parameters for Included URL Rules
When you include app-specific URLs in Django URL configuration, you can pass common parameters for all the views of the included app as follows:
urlpatterns = [
# ...
url(
r"^feedback/",
include("feedback.urls", namespace="feedback"),
{"base_template_name": "base_v2.html"},
),
]
Here the base_template_name parameter will be passed to all the views mentioned at URL rules of the feedback app.
Tips and Tricks Programming Django 4.2 Django 3.2 Django 2.2
Also by me
Django Messaging app
For Django-based social platforms.
Django Paddle Subscriptions app
For Django-based SaaS projects.
Django GDPR Cookie Consent app
For Django websites that use cookies.