Django支持特定于开发人员的配置/设置的最佳方式以下是我的公司设计的方法,只是想知道是否有人有更好的方法: 在设置.py(在底部) #... try: if socket.gethostname() == 'testsite': ...2024-05-14 已阅读: n次