Django webserver automatically shuts off on local server when I try to access the admin section

后端 未结 2 942
失恋的感觉
失恋的感觉 2021-01-23 20:25

I\'m a noob trying to learn Django for the first time, I created a project in a virtualenv on Windows 10. It worked well in the beginning where I was able to login to the admin

相关标签:
2条回答
  • 2021-01-23 21:17

    There's a ticket about this issue: https://code.djangoproject.com/ticket/31067.

    This seems to be a bug in Python 3.7.0, and appears to be fixed in Python 3.7.1. It's still unknown what the exact trigger is for this bug.

    Since Django officially only supports the latest patch release of a Python series, this won't be fixed in Django. You can either upgrade your Python version to the latest patch release of 3.7, or downgrade Django to 2.2.

    0 讨论(0)
  • 2021-01-23 21:28

    It's a Django 3.0 issue as I've seen. There are so many issues on GitHub, regarding this error.

    You may try downgrading to Django 2.* versions for now. Version 2.1/2.2 works fine.

    0 讨论(0)
提交回复
热议问题