How to make Django's devserver public ? Is it generally possible?

前端 未结 9 585
半阙折子戏
半阙折子戏 2020-12-08 10:03

I\'m currently trying out the Django framework and I would share/present/show some stuff I\'ve made to my workmate/friends. I work in Ubuntu under Win7 via VMware. So my wis

9条回答
  •  死守一世寂寞
    2020-12-08 10:32

    If you are using Virtualbox, You need to change the network setting in VB from "NAT" to "Bridged Adaptor". Then restart the linux. Now if you run sudo ifconfig you are able to see your IP address like 192.168.*.* . The last step is runserver

    python manage.py runserver 192.168.*.*:8000

    Cheers!

提交回复
热议问题