How can I see the Django development server in VMWare?

后端 未结 3 893
轮回少年
轮回少年 2021-02-04 12:40

I am trying to connect to a Django development server, running in OS X localhost:8000, from VMWare running Windows.

I\'ve tried various combinations of settings, but no

3条回答
  •  渐次进展
    2021-02-04 13:17

    I got it working one time with a Django Development Server running inside a Ubuntu 11.04 VM.

    I was able to access the development server outside that VM on Windows 7 by setting the ip in python manage.py runserver (local ip of the OS X machine here, not localhost):8000 to the same ip as the computer it was running on, in your case, the OS X.

    My VM was set up to have its own IP address different from that of the host.

    Since it's just the other way around, I would suspect your set-up should work too.

    Perhaps you should check whether the VM can ping the OS X computer and vice versa or if their IP's are unique.

提交回复
热议问题