如何在公共IP地址中运行django项目?

时间:2022-09-16 13:25:38

i have to run my django project in public ip address, i try to run my project in public ip address but it showing this error : Error: That IP address can't be assigned-to.

我必须在公共IP地址运行我的django项目,我尝试在公共IP地址运行我的项目,但它显示此错误:错误:该IP地址无法分配。

1 个解决方案

#1


0  

python manage.py runserver 0.0.0.0:8000

From above command you can access your Django app from LAN but it still won't be accessible from outside the LAN,

从上面的命令,你可以从局域网访问你的Django应用程序,但它仍然无法从局域网外访问,

#1


0  

python manage.py runserver 0.0.0.0:8000

From above command you can access your Django app from LAN but it still won't be accessible from outside the LAN,

从上面的命令,你可以从局域网访问你的Django应用程序,但它仍然无法从局域网外访问,