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

浏览器无法访问 #12

Open
xingluli opened this issue Mar 28, 2019 · 7 comments
Open

浏览器无法访问 #12

xingluli opened this issue Mar 28, 2019 · 7 comments

Comments

@xingluli
Copy link

正常启动了,但是浏览器无法访问。
python manage.py runserver
Performing system checks...
System check identified no issues (0 silenced).
March 28, 2019 - 05:04:36
Django version 1.8.13, using settings 'movieweb.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.

@hanyucd
Copy link
Owner

hanyucd commented Mar 28, 2019

@xingluli 浏览器访问报什么错?

@xingluli
Copy link
Author

@hanyucd 不好意思,是我没描述清楚。我的意思是我部署在远程服务器上,通过浏览器无法访问,程序启动没有报错。是因为框架的原因吗

@hanyucd
Copy link
Owner

hanyucd commented Mar 28, 2019

@xingluli 本地机可以跑,浏览器可访问成功不?

@xingluli
Copy link
Author

@hanyucd 我本地是python3环境,跑的时候问题很多

@hanyucd
Copy link
Owner

hanyucd commented Mar 28, 2019

你试试 2.7 环境。

@xingluli
Copy link
Author

@hanyucd 我跑起来了哈,谢谢 我启动服务的地址有问题。。。

@hanyucd
Copy link
Owner

hanyucd commented Mar 28, 2019

@xingluli 你这样一说,我一下反应过来了,服务器下应该是:python manage.py runserver ip:端口 才行。
呵呵,感觉可以的话,可以给个 star(^_^)

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

2 participants