mirror of
https://github.com/django-components/django-components.git
synced 2025-09-22 21:52:26 +00:00

Some checks are pending
Docs - build & deploy / docs (push) Waiting to run
Run tests / build (ubuntu-latest, 3.10) (push) Waiting to run
Run tests / build (ubuntu-latest, 3.11) (push) Waiting to run
Run tests / build (ubuntu-latest, 3.12) (push) Waiting to run
Run tests / build (ubuntu-latest, 3.13) (push) Waiting to run
Run tests / build (ubuntu-latest, 3.8) (push) Waiting to run
Run tests / build (ubuntu-latest, 3.9) (push) Waiting to run
Run tests / build (windows-latest, 3.10) (push) Waiting to run
Run tests / build (windows-latest, 3.11) (push) Waiting to run
Run tests / build (windows-latest, 3.12) (push) Waiting to run
Run tests / build (windows-latest, 3.13) (push) Waiting to run
Run tests / build (windows-latest, 3.8) (push) Waiting to run
Run tests / build (windows-latest, 3.9) (push) Waiting to run
Run tests / test_docs (3.13) (push) Waiting to run
Run tests / test_sampleproject (3.13) (push) Waiting to run
27 lines
715 B
Markdown
27 lines
715 B
Markdown
<!-- Autogenerated by reference.py -->
|
|
|
|
# URLs
|
|
|
|
Below are all the URL patterns that will be added by adding `django_components.urls`.
|
|
|
|
See [Installation](../getting_started/installation.md#adding-support-for-js-and-css)
|
|
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:
|
|
|
|
```python
|
|
from django.urls import include, path
|
|
|
|
urlpatterns = [
|
|
...
|
|
path("", include("django_components.urls")),
|
|
]
|
|
```
|
|
|
|
## List of URLs
|
|
|
|
|
|
- `components/cache/<str:comp_cls_id>.<str:input_hash>.<str:script_type>`
|
|
|
|
- `components/cache/<str:comp_cls_id>.<str:script_type>`
|