博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
django admin找不到STATIC_URL
阅读量:6998 次
发布时间:2019-06-27

本文共 298 字,大约阅读时间需要 1 分钟。

某一天清理项目废旧代码的时候 不小心注释了STATIC_URL变量 然后就报错了

"You're using the staticfiles app "

django.core.exceptions.ImproperlyConfigured: You're using the staticfiles app without having set the required STATIC_URL setting.

解决办法

在settings.py 里面重新开启
STATIC_URL = '/STATIC/'

转载于:https://blog.51cto.com/3832546/2054287

你可能感兴趣的文章