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')],
```

评论

此博客中的热门博文

Windows下ShadowSocks客户端安装和配置 顺带KCP

How to Install KeePass on M1 Mac

How User Friendly is a MacOS