How do you debug Django sites using Win 7 XP mode?

I am developing a Django site using Windows 7 as my dev environment. IE6 works in XP mode for me. Accessing my site through localhost: 8000 does not work in IE6 (possibly because it still works with VM). Is there a way to access my site in IE6 while it is being served through a Django test server running on Windows 7?

+4
source share
2 answers

When running Django runserver on one computer, but accessing it from another (or virtual machine in your case), make sure that:

a) Associate the django test server with the address that IE6 can access in the virtual machine. To do this, start the server using:

 $ python manage.py runserver 192.168.xx:8000 

b) Visit this explicit address and port in IE. For IE6, be sure to specify the β€œhttp” protocol, since IE6 does not like IP addresses without a protocol:

 http://192.168.xx:8000/ 

The reason for this is that inside the localhost or 127.0.0.1 virtual machine (the default values ​​for the server server) refer to the IP address of the virtual machine. If you use IE6 for testing, you want to access the host operating system, so use the absolute IP address that the client VM can access. There is some documentation about this from the django project , and rest assured, this is a common enough need for all of us to do this - testing several IE options in a virtual machine seems like a fact of life :-)

If you still have problems, make sure you determine if you are using NAT or a modem network for your client VM, as this controls the IP address, OS firewall restrictions (if any), and other ways to exchange information between VMs client and host.

+5
source

your virtual machine and the server running django are in two separate containers, and you cannot access the django application using localhost, since Django is not installed on the virtual machine. but what you can do is install the IE tester http://www.my-debugbar.com/wiki/IETester/HomePage] on Windows 7 to test all versions of IE.

+2
source

All Articles