Skip to content Skip to sidebar Skip to footer

Django: Operationalerror When I Try To Create User From Admin

I have Django 1.10 with MySQL, every time I enter admin and I try to make a user I get this error: The thing is I can create any other model and if I create a super user from com

Solution 1:

In my case, I've found out that the root cause is the MySQL-Python database driver and the fix is to use other MySQL drivers for Python (e.g. mysqlclient).

$ pip uninstall MySQL-Python
$ pip install mysqlclient

MySQL-python turned out to be very old (last commit was 7 years ago). mysqlclient is the modern version of it, with lots of improvements and bug fixes.

More details about my fix and findings here.

Post a Comment for "Django: Operationalerror When I Try To Create User From Admin"