Django Server Stops Immediatly After Login Into Admin Page
Solution 1:
Here are the solutions on how to solve this problem.
Attentions. These solutions work if you have the Django v3. I didn't face the same problem in the case of Django v2 etc. So, please, check your Django version and if you don't have v3, this answer, probably, won't help you. Sorry.
1) you can downgrade your Django version to v2+
but I don't like this way because I prefer to use the latest versions of everything
2) upgrade your python version to 3.8.0 and it should help . (I solved this problem in this way)
I suggest you use something like pyenv package if you have other projects that depend on your previous python version. Thanks to this package you can simply switch your python versions when you need to work on projects that require different python versions. Also, I'd like to suggest you use venv for your projects to keep your dependencies isolated. Using a different environment is a nice practice in the case of python development.
Hope it helps. Kind regards.
Solution 2:
I faced the same issue with Python version 3.7.0
. It looks that there is already ticket for that. Updating Python to version 3.7.6
helped to resolve this issue for me:
# Updating version via pyenv
$ pyenv install 3.7.6
Creating new virtualenv using pipenv
(remember to clear old venv if neccessary):
$ pipenv --rm
$ pipenv install --dev
Creating a virtualenv for this project…
Pipfile: /home/homeuser/projects/django_rest/Pipfile
Using /home/homeuser/.pyenv/versions/3.7.6/bin/python3 (3.7.6) to create virtualenv…
...
Solution 3:
I have changed Django version from 3.0 to 2.2.8 its working fine now, this may be an issue in Django 3.0.
Solution 4:
Try downgrading Django to 2.2.11. It worked for me
Solution 5:
I am facing same issue, I think this is and issue with django 3.x.x series
Post a Comment for "Django Server Stops Immediatly After Login Into Admin Page"