Custom base_site.html not working in Django

旧城冷巷雨未停 提交于 2019-12-05 08:18:33

Note that this answer was written before the TEMPLATES setting was introduced in Django 1.8.

The tutorial says you should create an admin subdirectory inside your template directory, and put your template inside that.

Try with base_site.html in /home/action/workspace/mysite/templates/admin and with

TEMPLATE_DIRS = (
    '/home/action/workspace/mysite/templates',
)

Note the slash before /home/... and the trailing comma to make it a tuple.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!