# "Python quit unexpectedly" after I try to login with admin credentials after installing Django

**URL:** <https://onehack.st/t/python-quit-unexpectedly-after-i-try-to-login-with-admin-credentials-after-installing-django/81928>\
**Category:** Discussion & Solutions\
**Tags:** solved\
**Created:** [April 24, 2020, 10:02am UTC](https://onehack.st/t/python-quit-unexpectedly-after-i-try-to-login-with-admin-credentials-after-installing-django/81928 "2020-04-24T10:02:21Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manyuchi](https://onehack.st/letter_avatar_proxy/v4/letter/m/6a8cbe/32.png) [@Manyuchi](https://onehack.st/u/Manyuchi)\
**Post date:** [April 24, 2020, 10:02am UTC](https://onehack.st/t/python-quit-unexpectedly-after-i-try-to-login-with-admin-credentials-after-installing-django/81928/1 "2020-04-24T10:02:22Z")

</div>

Error

> <https://pastebin.com/a1j4fSLN>

> EDITED BY @SaM

---

<div class="post-metadata">

**Author:** ![Waga](https://onehack.st/user_avatar/onehack.st/waga/32/27787_2.png) [@Waga](https://onehack.st/u/Waga)\
**Post date:** [April 24, 2020, 10:07am UTC](https://onehack.st/t/python-quit-unexpectedly-after-i-try-to-login-with-admin-credentials-after-installing-django/81928/2 "2020-04-24T10:07:12Z")

</div>

Bro kindly edit your post and maybe use pastebin or something.

Cheers!!!

> **… And Over Every Possessor of Knowledge, There is (Some) One (Else) More Knowledgeable.**

---

<div class="post-metadata">

**Author:** ![Manyuchi](https://onehack.st/letter_avatar_proxy/v4/letter/m/6a8cbe/32.png) [@Manyuchi](https://onehack.st/u/Manyuchi)\
**Post date:** [April 25, 2020, 8:37pm UTC](https://onehack.st/t/python-quit-unexpectedly-after-i-try-to-login-with-admin-credentials-after-installing-django/81928/7 "2020-04-25T20:37:01Z")

</div>

Thank you.

---

<div class="post-metadata">

**Author:** ![atlonxp](https://onehack.st/user_avatar/onehack.st/atlonxp/32/38549_2.png) [@atlonxp](https://onehack.st/u/atlonxp)\
**Post date:** [April 24, 2020, 10:41am UTC](https://onehack.st/t/python-quit-unexpectedly-after-i-try-to-login-with-admin-credentials-after-installing-django/81928/3 "2020-04-24T10:41:04Z")

</div>

Your log is useless! it does not tell anything. Please give me Django log file.

I believed there is missing Django dependencies and Python libraries. Make sure you install all of them and follow all recommended instruction:

1. Update Python 3.6+

2. Use virtual environment e.g. virtualenv, Pipenv, Conda (recommend)

3. If 1-2 don’t work. I believe something went wrong with your Python. Perform clean Python installation

---

<div class="post-metadata">

**Author:** ![kornbolt](https://onehack.st/user_avatar/onehack.st/kornbolt/32/8719_2.png) [@kornbolt](https://onehack.st/u/kornbolt)\
**Post date:** [April 24, 2020, 2:55pm UTC](https://onehack.st/t/python-quit-unexpectedly-after-i-try-to-login-with-admin-credentials-after-installing-django/81928/4 "2020-04-24T14:55:18Z")

</div>

He is already using 3.7.  
@Manyuchi what other dependencies/libraries are you using ?

---

<div class="post-metadata">

**Author:** ![Manyuchi](https://onehack.st/letter_avatar_proxy/v4/letter/m/6a8cbe/32.png) [@Manyuchi](https://onehack.st/u/Manyuchi)\
**Post date:** [April 25, 2020, 8:31pm UTC](https://onehack.st/t/python-quit-unexpectedly-after-i-try-to-login-with-admin-credentials-after-installing-django/81928/5 "2020-04-25T20:31:24Z")

</div>

I only installed **Python 3.9** and **Django 3** with no other dependancies/libraries.

---

<div class="post-metadata">

**Author:** ![Manyuchi](https://onehack.st/letter_avatar_proxy/v4/letter/m/6a8cbe/32.png) [@Manyuchi](https://onehack.st/u/Manyuchi)\
**Post date:** [April 25, 2020, 8:36pm UTC](https://onehack.st/t/python-quit-unexpectedly-after-i-try-to-login-with-admin-credentials-after-installing-django/81928/6 "2020-04-25T20:36:08Z")

</div>

Sorry i panicked and just copied everything that appeared on screen. I found a solution though, thank you for your input. It seems there is a bug with **Django 3.xx** , I had to degrade to **Django 2.2** and now it works perfectly fine. 🤓 🤓 🤓

[Next page](https://onehack.st/t/python-quit-unexpectedly-after-i-try-to-login-with-admin-credentials-after-installing-django/81928.md?page=2)
