Django Overwrite Templates of Any App
1. Create folder under Django root folder:
root/`templates/target app/*any new template you want*.html`
1. Add `os.path.join(BASE_DIR, 'templates')` into `'DIRS'` setting.
```python
# settings.py
TEMPLATES = [
{
'DIRS': [os.path.join(BASE_DIR, 'templates')],
```
评论
发表评论