Access Django app from other computers

后端 未结 4 2009
臣服心动
臣服心动 2021-02-14 22:17

I am developing a web application on my local computer in Django.

Now I want my webapp to be accessible to other computers on my network. We have a common network drive

4条回答
  •  醉梦人生
    2021-02-14 23:05

    Just add your own IP Address to ALLOWED_HOSTS

    ALLOWED_HOSTS = ['192.168.1.50', '127.0.0.1', 'localhost']

    and run your server python manage.py runserver 192.168.1.50:8000

    and access your own server to other computer in your network

提交回复
热议问题