Skip to content

Commit 43da532

Browse files
docs: dashboard TEAMPLATES configuration
1 parent d03ea80 commit 43da532

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/dashboard/index.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,17 @@ description: Customize admin dashboard with your own charts and components.
88

99
Create `templates/admin/index.html` in your project and paste the base template below into it. By default, all your custom styles here are not compiled because CSS classes are located in your specific project. Here it is needed to set up the Tailwind for your project and all required instructions are located in [Project Level Tailwind Stylesheet](#project-level-tailwind-stylesheet) chapter.
1010

11+
Ensure you have set up the template directory in `settings.py`
12+
13+
```python
14+
TEMPLATES = [
15+
{
16+
'BACKEND': 'django.template.backends.django.DjangoTemplates',
17+
'DIRS': [BASE_DIR / "templates"], # Ensure this line is added
18+
#....
19+
}
20+
```
21+
1122
```html
1223
{% extends 'unfold/layouts/base_simple.html' %}
1324

0 commit comments

Comments
 (0)