一. 问题描述

项目跑起来,报错信息如下:django.core.exceptions.ImproperlyConfigured: You're using the staticfiles app without having set the required STATIC_URL setting.

原因是 setting文件没有配置好

python报错:You're using the staticfiles app without having set the required STATIC_URL setting

二. 解决方案:

setting文件中增加配置:STATIC_URL = '/static/'

python报错:You're using the staticfiles app without having set the required STATIC_URL setting

 

 

相关文章:

  • 2021-06-15
  • 2021-06-24
  • 2021-11-02
  • 2022-12-23
  • 2021-07-28
  • 2022-01-02
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-06
  • 2022-12-23
  • 2021-12-17
  • 2022-12-23
  • 2021-12-19
  • 2021-08-17
  • 2021-08-03
相关资源
相似解决方案