摘要:
1.设置settings.py DEBUG = False ALLOWED_HOSTS = ["*"] ... STATIC_ROOT = os.path.join(BASE_DIR, 'static') STATIC_URL = '/static/' 2.修改项目的urls.py from dja 阅读全文
摘要:
找到项目级别里面的setting文件,修改如下配置 LANGUAGE_CODE = 'zh-hans' TIME_ZONE = 'Asia/Shanghai' 阅读全文