How to access the local Django webserver from outside world

前端 未结 9 1716
天命终不由人
天命终不由人 2020-12-02 04:06

I followed the instructions here to run Django using the built-in webserver and was able to successfully run it using python manage.py runserver. If I access 1

9条回答
  •  误落风尘
    2020-12-02 04:32

    I'm going to add this here:

    1. sudo python manage.py runserver 80

    2. Go to your phone or computer and enter your computers internal IP (e.g 192.168.0.12) into the browser.

    At this point you should be connected to the Django server.

    This should also work without sudo:

    python manage.py runserver 0.0.0.0:8000
    

提交回复
热议问题