开发者

Internet Explorer does not talk with django dev server

I am running the python development server locally , like so:

python .\manage.py runserver

Th开发者_StackOverflow中文版is works fine in Firefox/Chrome/Safari, but when I try it with Internet Explorere (9, 8, 7) the server will not interact with the browser - actions like log in will take forever and eventually fail.

Essentially anything that is not a simple static template (sometimes not even that) will not load in IE (but loads fine in FF/Chrome)

My Environment:

  • Windows 7 (x64)
  • Aptana
  • Python v2.7.2
  • django v1.3

Update: This does not happen when I explicitly define the server IP address, like so:

python .\manage.py runserver 192.168.1.123:8000

Any ideas? suggestions?


Two guesses:

  1. If you're developing on Windows and pointing your browser at localhost:8000, try 127.0.0.1:8000 instead. I've had that issue with IE9 before.

  2. If you're working with a VM (I'm asking because IE7,8,9 won't all run on the same OS) you need to point to the host machine IP, since localhost would be the local IP of the VM itself.


Try appending the following to your httpd.conf. I've had issues before with IE not submitting POST data.

SetEnvIf User-Agent ".*MSIE.*" ssl-unclean-shutdown
MaxKeepAliveRequests 1
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜