LoginSignup
0
0

More than 3 years have passed since last update.

django2.2ではPyMySQL使用できず、djangoのバージョン変更する必要あり

Posted at

django、python初学者です。

djangoのチュートリアルを見ながら、進めてそれぞれのファイルの使い方等を勉強しながら進めていたのですが、データベース設定の場所でつまずきました。

チュートリアル通りにデータベースの設定をしたのですが、うまく適用することができず結構時間がかかりました。

結果:Djangoのバージョンが2.2はPyMySqlに対応していないのでDjangoのバージョンを下げる必要がある。

っていうだけでした!

行った対応

  • Djangoのバージョンを2.1に変更
  • pip install cryptography で cryptographyをインストール

参考にしたサイト:
https://sleepless-se.net/2019/04/15/django-2-2-no-support-pymysql/

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0