本人用PyCharm工作目录如下:
在Settings.py中设置了
urls.py添加了静态文件路径:
html中这样加载静态资源:
然而却一直无法加载到资源文件…………
python manage.py collectstatic
static 后面接单引号的啊。。。还有。。。怎么不试试django-bootstrap3呢?https://github.com/dyve/django-bootstrap3
https://.com/q/1010000004286460?utm_source=APP&utm_medium=iOS&utm_campaign=socialShare
不知道有没有帮助...我也碰到过这个问题,最后自己解决了...解决办法写在问题后面了...希望对你有帮助...