Professional Documents
Culture Documents
It has been almost a month since I got this problem, and I really appreciate your help.
As I am trying to access my web app by using django-allauth authentication , an error
occurs:
OSError at /accounts/login/
[WinError 10013] An attempt was made to access a socket in a way forbidden by its access
permissions.
Possible Causes and Solutions
1. Cause: Socket access needs administrative privilege.
Attempted Solution:
Granted Administrator access to python.exe by navigating to the virtual environment.
Navigate to CMD.exe , right click , properties, grant administrator privilege.
2. Cause: Port can be already used by another program.
Attempted Solution: Checked the ports using TCPView windows program and see that the
port 8000 is not used by another program.
3. Cause: Socket access blocked by Firewall and Antivirus.
Attempted Solution: When I tried disabling Firewall and Antivirus, I get another error
ConnectionRefusedError at accounts/login/
[WinError 10061] No connection could be made because the target machine actively refused it.