URLs
Below are the URL patterns that django_components.urls adds.
Components that expose a public View additionally get their own endpoint (via the view extension); retrieve it with get_component_url() rather than hard-coding it.
See Installation on how to add these URLs to your Django project.
Django components already prefixes all URLs with components/. So when you are adding the URLs to urlpatterns, you can use an empty string as the first argument:
from django.urls import include, path
urlpatterns = [
...
path("", include("django_components.urls")),
]
List of URLs
components/cache/(?P<comp_cls_id>[^/]+)\.(?P<variables_hash>[0-9a-f]{32})\.(?P<script_type>js|css)components/cache/(?P<comp_cls_id>[^/]+)\.(?P<script_type>js|css)