摘要: 1.设置settings.py DEBUG = False ALLOWED_HOSTS = ["*"] ... STATIC_ROOT = os.path.join(BASE_DIR, 'static') STATIC_URL = '/static/' 2.修改项目的urls.py from dja 阅读全文
posted @ 2022-02-01 22:53 CrossPython 阅读(900) 评论(0) 推荐(0) 编辑