【发布时间】:2017-11-23 17:03:32
【问题描述】:
安装好Django之后,我们使用命令:
python manage.py runserver
我们可以运行一个服务器,但是我不知道服务器是哪个服务器,我搜索了django目录,发现服务器不在目录中:
aircraftdeMacBook-Pro:Django-1.11.2-py2.7.egg ldl$ cd django/
aircraftdeMacBook-Pro:django ldl$ ls
__init__.py bin dispatch shortcuts.pyc utils
__init__.pyc conf forms template views
__main__.py contrib http templatetags
__main__.pyc core middleware test
apps db shortcuts.py urls
所以,我有两个问题:
- 服务器是哪个网络服务器,如何找到它的位置?
- 如果我们完成应用程序,如果我们使用 web-server 作为 python-web 的 web-server(意味着为什么不使用 apache 或 nginx)?
- 端口默认是8000,怎么改成80?
【问题讨论】: