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

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

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

django.core.exceptions.ImproperlyConfigured: You're using the staticfiles app without having set the_第1张图片
然后执行命令
django.core.exceptions.ImproperlyConfigured: You're using the staticfiles app without having set the_第2张图片
django.core.exceptions.ImproperlyConfigured: You're using the staticfiles app without having set the_第3张图片
同步完成后在打开对应的注释,将下面的注释掉
django.core.exceptions.ImproperlyConfigured: You're using the staticfiles app without having set the_第4张图片
这样问题就解决了

你可能感兴趣的:(django.core.exceptions.ImproperlyConfigured: You're using the staticfiles app without having set the)