我的文件中有以下代码settings.py,当我启动服务器时,打印语句被调用两次。这是为什么?
设置.py
if os.environ.get('DJANGO_DEVELOPMENT'):
print('Development Mode')
DEBUG = True
ADMIN_ENABLED = True
Run Code Online (Sandbox Code Playgroud)
安慰
Development Mode
Development Mode
Performing system checks...
System check identified no issues (0 silenced).
July 16, 2020 - 20:34:23
Django version 3.0.8, using settings 'MyApp.settings'
Starting development server at http://0.0.0.0:8000/
Quit the server with CONTROL-C.
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1038 次 |
| 最近记录: |