Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Beginner installing/running Django... Errno 10013?

Tags:

django

So I'm a relative novice with Python, and just tried installing and running Django today. I'm working my way through the official tutorial, and when I try to run the python manage.py runserver I get Errno 10013: an attempt was made to access a socket in a way forbidden by its access permissions.

I am using Windows 7, and am running the cmd.exe console as an administrator. Could someone please explain how to fix this in plain english? The next step in the tutorial says to visit http://127.0.0.1:8000/ and that it should say Welcome to Django, but mine just brings up an error.

Thanks in advance for the help.

like image 940
user1070381 Avatar asked Nov 29 '11 04:11

user1070381


1 Answers

The default port might be open in another program. Try the following:

python manage.py runserver 8080

If that doesn't work, it might be a permissions problem. Some people have reported that just running cmd.exe as admin isn't enough. There are a few fixes for this, but they're annoying and probably indicate something's weird with your Python install. Try the port fix first :-)

EDIT: Just read a blog post saying this is very common with folks running Aptana/PyDev. Aptana's internal webserver uses port 8000, which is the Django default.

like image 195
Evan Brumley Avatar answered Oct 13 '22 01:10

Evan Brumley