Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试将 django 项目部署到 heroku。当我调试为 False 时,我的静态文件将无法工作。如果我在我的设置页面中部署 debug = True,则静态文件将起作用。有什么想法吗?
对于生产(即DEBUG = False),您需要使用有关 heroku的官方文档中详细说明的dj-static库
DEBUG = False
dj-static