mirror of
https://github.com/django-components/django-components.git
synced 2025-09-25 06:59:10 +00:00
commit
f3d6337ecc
1 changed files with 2 additions and 2 deletions
|
@ -118,7 +118,7 @@ STATICFILES_DIRS = [
|
||||||
|
|
||||||
### Optional
|
### Optional
|
||||||
|
|
||||||
To avoid loading the app in each template using ``` {% load django_components %} ```, you can add the tag as a 'builtin' in settings.py
|
To avoid loading the app in each template using ``` {% load component_tags %} ```, you can add the tag as a 'builtin' in settings.py
|
||||||
|
|
||||||
```python
|
```python
|
||||||
TEMPLATES = [
|
TEMPLATES = [
|
||||||
|
@ -480,7 +480,7 @@ Then, to use this component as a view, you should create a `urls.py` file in you
|
||||||
```python
|
```python
|
||||||
# In a file called [project root]/components/urls.py
|
# In a file called [project root]/components/urls.py
|
||||||
from django.urls import path
|
from django.urls import path
|
||||||
from calendar import Calendar
|
from components.calendar.calendar import Calendar
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path("calendar/", Calendar.as_view()),
|
path("calendar/", Calendar.as_view()),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue