一. 问题描述
项目跑起来,报错信息如下:django.core.exceptions.ImproperlyConfigured: You're using the staticfiles app without having set the required STATIC_URL setting.
原因是 setting文件没有配置好
二. 解决方案:
setting文件中增加配置:STATIC_URL = '/static/'
一. 问题描述
项目跑起来,报错信息如下:django.core.exceptions.ImproperlyConfigured: You're using the staticfiles app without having set the required STATIC_URL setting.
原因是 setting文件没有配置好
二. 解决方案:
setting文件中增加配置:STATIC_URL = '/static/'