The Python Oracle

Django Admin Login page - Python Crashes

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Future Grid Looping

--

Chapters
00:00 Django Admin Login Page - Python Crashes
01:03 Accepted Answer Score 6
01:26 Answer 2 Score 1
01:45 Answer 3 Score 2
01:58 Answer 4 Score 0
02:32 Thank you

--

Full question
https://stackoverflow.com/questions/5921...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #djangoadmin #djangologin #django30

#avk47



ACCEPTED ANSWER

Score 6


I had the same problem with python 3.7.0 and Django 3.0 I've solved it by upgrading the python to Python 3.7.6

brew upgrade python3

Then I faced some issues with links and venv and I had to reinstall my venv and Django. So, I hope it helps someone.




ANSWER 2

Score 2


I got the same issue with Python 3.7.0 as well. Upgrading to Python 3.8.0 solves this.




ANSWER 3

Score 1


I had also facing the same issue i upgrade my python but problem is not with python it is occur by virtual environment. upgrade your virtual environment by running following command python -m venv --upgrade ./myvenv




ANSWER 4

Score 0


I had the same problem. But I was using anaconda bundle. It doesn't allow you to update your python packages to minor versions like "3.7.X" or "3.8.X". So, I uninstalled the existing bundle and reinstalled it which comes with a 3.7.6 version of Python. That solved the issue of admin page crashing.

Or

You can install a new version of python (3.7.6 or above) and run your django application there.