The story of using mysqlclient because PyMySQL cannot be used with Django 2.2

process

I want to make a web application that can open a game tournament ~ → The times are Python ❗

That's why I started building an environment using Django

environment

What happened

https://qiita.com/aeas44/items/90c867aa2d02f9047ef0 Install PyMySQL referring to. Make DB settings

python manage.py migrate

Hit.

Then

raise ImproperlyConfigured('mysqlclient 1.3.13 or newer is required; you have %s.' % Database.__version__)
django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3.

I can't Migrate for some reason.

Cause

① PyMySQL is not supported in Django 2.2

If it is the version of Django 2.1, it will work without problems

② In the first place, the official recommended driver is mysqlclient

But if you take a look at the official documentation

mysqlclient is a native driver. It’s the recommended choice. https://docs.djangoproject.com/en/2.2/ref/databases/

I wrote that you can use mysqlclient

That's why I decided to try it here

pip install mysqlclient

Install with. You don't have to change the environment settings

python manage.py migrate

I was able to migrate safely ❗

Recommended Posts

The story of using mysqlclient because PyMySQL cannot be used with Django 2.2
Chrome cannot be opened with selenium because the version of Chrome driver does not match
Django cannot be installed in the development environment of pipenv + pyenv
Solution when the image cannot be displayed with tkinter [python]
Try blurring the image with opencv2
Hide the warning that zsh can be used by default on Mac
The --security option cannot be used with the dnf command on CentOS Linux
The story of using mysqlclient because PyMySQL cannot be used with Django 2.2
Be careful of the type when making an image mask with Numpy
The --security option cannot be used with the dnf command on CentOS Linux
The story of doing deep learning with TPU
Project cannot be created with Python3.5 (Windows) + django1.7.1
Exclusive release of the django app using ngrok
The story of making a web application that records extensive reading with Django
No module named'distutils.util' cannot be used with get-pip.py
The story of Django creating a library that might be a little more useful
The story of viewing media files in Django
[Django] css in the project cannot be read
The problem that the ifconfig command cannot be used
Python note: When the pip command cannot be used
The story of stopping the production service with the hostname command
The story of replacing Nvidia GTX 1650 with Linux Mint 20.1.
The background color of the QWidget subclass cannot be set
The story of sharing the pyenv environment with multiple users
[android] When AVD cannot be used with permission denied
list comprehension because operator.methodcaller cannot be used in python 2.5
The story that Japanese output was confused with Django
The story of using circleci to build manylinux wheels
When using tf.print (), the contents of the tensor cannot be displayed if it is inside f-string.
[Small story] How to install the module when pip cannot be used due to proxy etc.
The story of debugging in the local environment because the compilation did not work with Read the Docs
Let's introduce the library currently used by engineers with about 3 years of experience in Django
The story of implementing the popular Facebook Messenger Bot with python
Solution when the image cannot be displayed with tkinter [python]
Record of actions to be taken when google_image_download cannot be used
The story of a Django model field disappearing from a class
The story of rubyist struggling with python :: Dict data with pycall
Until the start of the django tutorial with pycharm on Windows
When Times New Roman cannot be used with matplotlib (Ubuntu)
The story of creating a database using the Google Analytics API
The story of making a question box bot with discord.py
[For IT beginners] What to do when the rev command cannot be used with Git Bash
Solved the trap that Rails commands could not be used after using the development environment with Docker
The story of building Zabbix 4.4
[Apache] The story of prefork
A story stuck with the installation of the machine learning library JAX
The story of not being able to run pygame with pycharm
Become familiar with (want to be) around the pipeline of spaCy
March 14th is Pi Day. The story of calculating pi with python
Implementation of CRUD using REST API with Python + Django Rest framework + igGrid
Flow of getting the result of asynchronous processing using Django and Celery
The story of making a standard driver for db with python.
The story of outputting the planetarium master in pdf format with Pycairo
The story of visualizing popular Qiita tags with Bar Chart Race
Using PhantomJS with AWS Lambda until displaying the html of the website
Test the application of migration files with Django + PostgreSQL (Evil Way)
The story of making a module that skips mail with python
The story of failing to update "calendar.day_abbr" on the admin screen of django