django.core.exceptions.ImproperlyConfigured: You‘re using the staticfiles app without having set the

﹏ヽ暗。殇╰゛Y 2023-02-25 08:34 95阅读 0赞

在同步静态的时候 会遇到上诉的问题
django.core.exceptions.ImproperlyConfigured: You’re using the staticfiles app without having set the STATIC_ROOT setting to a filesystem path

在同步静态前需要将下面的代码注释

在这里插入图片描述
然后执行命令

在这里插入图片描述

在这里插入图片描述
同步完成后在打开对应的注释,将下面的注释掉在这里插入图片描述

这样问题就解决了

发表评论

表情:
评论列表 (有 0 条评论,95人围观)

还没有评论,来说两句吧...

相关阅读