提示 : 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_U…
Djangon生产环境静态资源的处理 Django 关闭DEBUG模式后,就相当于是生产环境了. Django框架一旦作为生产环境,它的静态文件访问接口就不应该从Django框架中走,必须在Django框架前端部署nginx或者其他web服务器来提供静态访问入口 With debug turned off Django won't handle static files for you any more - your production web server (Apache or someth…