Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ex3连接web项目时出现两个小问题:无法找到本地模型;Invalid HTTP_HOST header by4组吴沈荣 #57

Open
He1he2 opened this issue Oct 30, 2024 · 0 comments

Comments

@He1he2
Copy link

He1he2 commented Oct 30, 2024

一、修改本地模型路径时需要加上file:

二、修改Djano项目的配置
修改项目下的settings.py
在ALLOWED_HOSTS = []中增加对应ip
ALLOWED_HOSTS = ['', '', '']
或者放通所有
ALLOWED_HOSTS = ['*']

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant