更新时间:2022-01-15 21:55:06
正如我们所讨论的,您的设置是正确的,但是在settings.py中,您应该将 DEBUG = False
设置为.它更多的是生产功能,并且不能在开发环境中工作(除非您在开发机中当然有 DEBUG = False
).
As we discussed, your setup is correct, but in settings.py you should make DEBUG=False
. It's more of a production feature and won't work in development environment(unless you have DEBUG=False
in dev machine of course).