pycharm中指定ip和端口 環境: 系統:win7 本機ip:192.168.0.100 1、建立工程請參照:https://www.cnblogs.com/effortsing/p/10394511.html 2、django項目中添加路由 3、修改pycharm中的ip和端口 在pycharm右上角運行那里有個下拉菜單,下拉菜單中點擊Edit Configuration![]()
4、修改匹配ip列表5、訪問 http://192.168.0.100:9700 hello world http://192.168.0.100:9700/product123 product http://192.168.0.100:9700/product456 product http://192.168.0.100:9700/country/China country