#setting.py import socket if socket.gethostname() == 'my‐laptop': DEBUG = TEMPLATE_DEBUG = True else: DEBUG = TEMPLATE_DEBUG = False
本文共 195 字,大约阅读时间需要 1 分钟。
#setting.py import socket if socket.gethostname() == 'my‐laptop': DEBUG = TEMPLATE_DEBUG = True else: DEBUG = TEMPLATE_DEBUG = False
转载于:https://www.cnblogs.com/xmyy/articles/2857679.html