Django应用的启动模式配置,通过settings.py文件中的DEBUG项来完成。具体说明如下:
【代码2-2】
# SECURITY WARNING: don't run with debug turned on in production! DEBUG = True