【发布时间】:2013-11-15 22:45:15
【问题描述】:
如中所述:https://docs.djangoproject.com/en/dev/howto/static-files/
当 DEBUG 设置为 True 时,服务器会自动提供静态文件,但它声明:
This method is grossly inefficient and probably insecure, so it is unsuitable for production.
但究竟什么是低效和不安全的呢?我只是在 Heroku 上有一个小型项目,我还没有设置为“生产”模式,我想知道确切的缺点是什么。
【问题讨论】: