【发布时间】:2013-03-18 06:51:58
【问题描述】:
我使用 django 开发了一个运行良好的网站,它即将投入生产并在几周内准备好部署。
因此,在开始生产之前,我想与我的一些员工共享该网站,以检查其功能和其他内容。实际上他们的系统和我的系统连接在局域网中。
所以我的系统 IP 地址类似于 192.168.12.135,当我们运行 run django 开发服务器时,它运行在 localhost:8000,我的意思是使用系统 IP 地址和端口 8000,如 192.168.12.135:8000 对。
所以我将项目站点链接共享为192.168.12.135:8000,但是当他们尝试连接在局域网中的系统时,它无法访问并显示错误Server not found。
我尝试了上述相同的方法,因为最近我使用 python web.py 框架并开发了一个最小站点,当我们运行服务器时,它默认运行为 localhost:8080 ,当我从其他系统访问此链接时,与我的局域网连接为192.168.12.135:8000,它工作正常并且可以访问。
谁能告诉我
1. How to access the site on the systems that are connected in LAN before moving to production(in some real servers like apache, nginx etc.,).
2. Basically i am new to web developing and this is my first site developed in python, so
i don't know more about servers and deploying a project. So can anyone please let me know
the detailed information about deploying django on different servers
(首先我正在寻找1st problem的解决方案(在移动到之前在局域网中访问
生产))
【问题讨论】: