admin xadmin 找不到样式 ,配置STATIC_ROOT后又出现 Command 'collectstatic' skipped
来源:

loklei
2017-01-26
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
如上图,如果我将setting里的最后这句注释掉,xadmin 的样式能出来,但是运行manage.py又会出错:
Error fetching command 'collectstatic': You're using the staticfiles app without having set the STATIC_ROOT setting to a filesystem path.
Command 'collectstatic' skipped
不注释掉呢,错误没了,但样式又出不来了。
这个问题在admin里也存在,我以为换了xadmin就好了,结果还是没好。
系统是mac
安装方法是先pip 然后源码,后又卸载pip 是按照教程来的。
我试着另一位同学 http://coding.imooc.com/learn/questiondetail/5333.html
尝试移动目录,也无效。
谢谢老师
写回答
1回答
-
你不要设置 STATIC_ROOT 这个设置了 static就会无效 如果pycharm中提示collectstatic错误 你不管这个错误就是了 应该是和pycharm本身有关
422017-01-30
相似问题