Problems with "Hello World" Debian Wheezy Django 1.6.5

67 views
Skip to first unread message

Andrew Koller

unread,
Aug 18, 2014, 10:28:12 PM8/18/14
to django...@googlegroups.com
I'm having issues getting the dev server to work. After I installed Django, and 

$ python -c "import django; prindjango.get_version())"

returns 1.6.5

Then:

$ python manage.py runserver

returns: 

Validating models...
0 errors found
August 19, 2014 - 02:19:03
Django version 1.6.5, using settings 'mysite.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
but 127.0.0.1:8000 shows no data in Chrome. 

Thanks for the help 

Aaron C. de Bruyn

unread,
Aug 19, 2014, 1:47:39 AM8/19/14
to django...@googlegroups.com
After trying to load the page in Chrome, do you see any output in the 'runserver' window?


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/13f29c35-56bb-455e-b7dc-68d2f160c82e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sergiy Khohlov

unread,
Aug 19, 2014, 2:37:25 AM8/19/14
to django-users
also try 
 python manage.py runserver  127.0.0.1:8000

Many thanks,

Serge


+380 636150445
skype: skhohlov


Tom Evans

unread,
Aug 19, 2014, 5:13:18 AM8/19/14
to django...@googlegroups.com
Are the browser and django running on the same computer?

Cheers

Tom

Andrew Koller

unread,
Aug 19, 2014, 12:05:55 PM8/19/14
to django...@googlegroups.com
Yes they are. 

Andrew Koller

unread,
Aug 19, 2014, 12:07:36 PM8/19/14
to django...@googlegroups.com
Yes they are on the same computer and no, I don't get any additional output to the console. I know that something is sort of working because the chrome error message changes from "This webpage is not available" to "No data received" on 127.0.0.1:8000

Andrew Koller

unread,
Aug 19, 2014, 12:08:16 PM8/19/14
to django...@googlegroups.com
Thanks for your help, but I get the same result.

Tom Evans

unread,
Aug 19, 2014, 12:21:34 PM8/19/14
to django...@googlegroups.com
On Tue, Aug 19, 2014 at 5:07 PM, Andrew Koller <akol...@gmail.com> wrote:
> Yes they are on the same computer and no, I don't get any additional output
> to the console. I know that something is sort of working because the chrome
> error message changes from "This webpage is not available" to "No data
> received" on 127.0.0.1:8000
>

From another console on the same machine:

telnet 127.0.0.1 8000

If it then says "Connected to localhost." type this in and hit return
twice afterwards

GET / HTTP/1.1
Host: 127.0.0.1

Alternatively, if you have curl installed:

curl -I http://127.0.0.1:8000/

Show the full output of either command please.

Cheers

Tom

Andrew Koller

unread,
Aug 19, 2014, 12:29:31 PM8/19/14
to django...@googlegroups.com

curl: (52) Empty reply from server

Tom Evans

unread,
Aug 19, 2014, 12:50:59 PM8/19/14
to django...@googlegroups.com
On Tue, Aug 19, 2014 at 5:29 PM, Andrew Koller <akol...@gmail.com> wrote:
> curl: (52) Empty reply from server
>

You have a firewall or some other security mechanism stopping communication?

Please verify that the django server is running and listening on the
port we assume it to be:

netstat -lpn | grep 8000

Cheers

Tom

Camilo Torres

unread,
Aug 19, 2014, 9:39:37 PM8/19/14
to django...@googlegroups.com
Paste here the content of your urls.py 

Andrew Koller

unread,
Aug 21, 2014, 9:31:01 PM8/21/14
to django...@googlegroups.com
Thanks for all your help guys. I got it to work by changing the ip address to: 

python manage.py runserver 0.0.0.0:8000

Not terribly sure why. 

Reply all
Reply to author
Forward
0 new messages