Localhost does not work with django web server but works with Tomcat

12 views
Skip to first unread message

CG

unread,
Mar 10, 2009, 7:12:00 PM3/10/09
to Django users
Using dango 1.0.2 final on windows vista.
I have tried starting up tomcat and using http://localhost:8000 and it
shows the tomcat default page which means localhost is being resolved
correctly on the machine.
Any ideas why I am not able to use http://localhost:8000 with django?
I started the webserver plainly with "python manage.py runserver" and
I am able to bring up the django page with the url http://127.0.0.1:8000

Thanks
CG

Karen Tracey

unread,
Mar 10, 2009, 10:02:28 PM3/10/09
to django...@googlegroups.com

See my response in this other thread:

http://groups.google.com/group/django-users/msg/5059353eb62e6254

If it's an IPv6 thing than maybe tomcat works because it listens on an IPv6 address?

Karen

CG

unread,
Mar 14, 2009, 6:22:53 PM3/14/09
to Django users
Karen,
Apologize for the late reply. Thanks for the excellent catch, it was
indeed an IPv6 issue. I just had to update my hosts file on windows
vista to include an entry for 127.0.0.1 and it worked!

Thanks again
CG

On Mar 10, 10:02 pm, Karen Tracey <kmtra...@gmail.com> wrote:
> On Tue, Mar 10, 2009 at 7:12 PM, CG <chandrakant.gopa...@gmail.com> wrote:
>
> > Using dango 1.0.2 final on windows vista.
> > I have tried starting up tomcat and usinghttp://localhost:8000and it
> > shows the tomcat default page which means localhost is being resolved
> > correctly on the machine.
> > Any ideas why I am not able to usehttp://localhost:8000with django?
> > I started the webserver plainly with "python manage.py runserver" and
> > I am able to bring up the django page with the urlhttp://127.0.0.1:8000
Reply all
Reply to author
Forward
0 new messages