
正文
Django静态文件路径设置
提示:扫一扫查出行【扫一扫了解最新限行尾号】
复制提示
提示 :
Error fetching command 'collectstatic': You're using the staticfiles app without having set the STATIC_ROOT setting to a filesystem path.
Command 'collectstatic' skipped

解决方法:settings.py添加
STATIC_ROOT = os.path.join(BASE_DIR, '/static/') STATIC_URL = '/static/'
STATICFILES_DIRS = [
os.path.join(BASE_DIR,'static')
]






