0

I have an issue which says An attempt was made to access a socket in a way forbidden by its access permissions. This issue is appearing when I use python manage.py command to run the server. Here is a picture with the problem Capture.jpg. Give some advice, tutorial or anything which could help me to fix it.

  • The error message suggests a solution. Also, post a text, not picture. – h4z3 Jun 07 '19 at 11:57
  • [This link might help you. Check out this.][link] [link]: https://stackoverflow.com/questions/2778840/socket-error-errno-10013-an-attempt-was-made-to-access-a-socket-in-a-way-forb – Alok Kumar Padhi Jun 07 '19 at 11:59
  • if you are in local change your port python manage.py runserver 127.0.0.1:8001 and open it. **or** restart your system. – hassanzadeh.sd Jun 07 '19 at 11:59
  • In my `settings.py` file ``` DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'testdb', 'USER': 'postgres', 'PASSWORD': 'admin', 'HOST': '127.0.0.1', 'PORT': '8001', } } ``` and i it give this error Is the server running on host "127.0.0.1" and accepting TCP/IP connections on port 8001? – Kiril Vodenicharov Jun 07 '19 at 12:05
  • Your postgres settings should probably be `'HOST' : 'localhost', 'PORT':''` – HenryM Jun 07 '19 at 13:09

0 Answers0