'Error while opening Django admin: "Error at /admin/ Incorrect padding"

I was making a web app using Django. I was using Django 3.0.7 for the sake. Then I upgraded to Django 3.1.1. When I reinstalled Django 3.0.7 I am unable to open Django Admin. While I try to get into my Django admin an error shows up saying:

Error at /admin/
Incorrect padding
Exception Location: ...\python\python38\lib\base64.py in b64decode, line 87


Solution 1:[1]

I solved this problem in Chrome by deleting any cookies relating to my Django development server port.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Lucas