编程语言
首页 > 编程语言> > [Python\Django]Error fetching command 'collectstatic'解决办法

[Python\Django]Error fetching command 'collectstatic'解决办法

作者:互联网

版权声明:无论原创随意转载 https://blog.csdn.net/zahuopuboss/article/details/53854649

python manage.py collectstatic

报错

django.core.exceptions.ImproperlyConfigured: You're using the staticfiles app without having set the STATIC_ROOT setting to a filesystem path.

 

https://docs.djangoproject.com/en/1.10/ref/settings/#static-files


在settings.py中增加

STATIC_ROOT = os.path.join(BASE_DIR, 'static')
---------------------
作者:雜貨鋪老闆
来源:CSDN
原文:https://blog.csdn.net/zahuopuboss/article/details/53854649
版权声明:本文为博主原创文章,转载请附上博文链接!

标签:Python,py,Django,blog,fetching,csdn,details,https,static
来源: https://blog.csdn.net/chenhanxuan1999/article/details/87893161