unable to access django development server on firefox/chrome

235 views
Skip to first unread message

gitrookie

unread,
Oct 12, 2013, 1:02:40 PM10/12/13
to django...@googlegroups.com
hi

I have just started to learn django. so I followed the instruction given in the link below. I am using ubuntu 13.04 and using python 3.3.1 in a virtual environment

https://docs.djangoproject.com/en/1.5/intro/tutorial01/

I ran the following command

python manage.py runserver

it gave the following output

Validating models...

0 errors found
October 12, 2013 - 11:37:58
Django version 1.5.4, using settings 'mywebsite.settings'
Development server is running at http://127.0.0.1:8000/
Quit the server with CONTROL-C.


But I am unable to access the url http://127.0.0.1:8000/ on firefox. It says unable to connect

Vernon D. Cole

unread,
Oct 12, 2013, 1:17:26 PM10/12/13
to django...@googlegroups.com
That's exactly how I do it using Firefox on my Ubuntu 13.04 workstation. I see nothing wrong in your explanation.

Are you trying to access it from the same computer that the development server is running on? 
If so, then check to see whether you have a firewall running on your workstation which may be blocking port 8000. 
If you are trying to see it from another computer, then your server needs to listen on other ports.  Try "python manage.py runserver 0.0.0.0:8000"
--
Vernon

Vernon D. Cole

unread,
Oct 12, 2013, 1:20:48 PM10/12/13
to django...@googlegroups.com
Also make sure your browser is not trying to use a proxy.  127.0.0.1 should be an exception on the proxy setting.

Kelvin Wong

unread,
Oct 13, 2013, 1:10:18 AM10/13/13
to django...@googlegroups.com
You can also try this

$ python manage.py runserver 0.0.0.0:8000

You can get your IP from ifconfig, open that in a browser (it might be 192.168.0.10, etc). You can test your site from another machine in this way

K

Tom Evans

unread,
Oct 14, 2013, 11:08:12 AM10/14/13
to django...@googlegroups.com
Is the box you are running django on the same box you are running firefox from?

Cheers

Tom
Reply all
Reply to author
Forward
0 new messages