开发者

django access local testing url

I am running windows xp and django 1.2.1 locally. I was wondering if there is a way to allow outside applications to be able to access a url in my local app.

For example I would like the url: http://www.127.0.0.1:8000/my-url to be able to receive push notifications from a webapp while I am working locally. It's a pain to have to upload my cod开发者_高级运维e to a server just to do testing on this one thing everytime I make a simple change.

Thanks for the insight and help.


by starting your application using

python manage.py runserver 192.168.1.1:8000

replace 192.168.1.1 with your system IP.

all the systems on your local network will be able to access your application, http://192.168.1.1:8000

If you want your application to be accessible from systems outside of your network, you need to have a static IP that is is accessible from outside world.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜