Manage.py runningerver Error: [Errno 10013]

I am having problems running django. When I use the manage.py runserver , I get the error message: Error: [Errno 10013] An attempt was made to access a socket in a way forbidden by access permissions

I am using postgreSQL as my database.

Edit: I am running Windows Vista p>

+6
source share
3 answers

If you don’t have permission to bind to the socket, you can try sudo manage.py runserver to do this with root privileges.

On Windows Vista / 7, you need to run the shell as an administrator. You can right-click on the icon and select "Run as administrator" or go to c:\windows\system32\ and right-click on cmd.exe and select "Run as administrator".

Edit: OK, this error occurs when another process is already using the same port. To change the port, do manage.py runserver 8080 , where the number at the end is the port you need.

+22
source

I had the same problem on my Windows8.1 (IPython 1.2.0 and Python 3.3.4). I found this solution from https://github.com/ipython/ipython/pull/1817 :

ipython notebook: start at port 8888

ipython notebook --port = 1234: use port 1234

0
source

**

  • [Errno 10013]

** This error occurs when the port you want to use is already in use by another program. so you just choose for another port from which you can use port 8080 use the following python manage.py runningerver 8080

0
source

Source: https://habr.com/ru/post/893286/


All Articles