MySQLdb connection question in Django.

Asked 2 years ago, Updated 2 years ago, 39 views

I started Django, I started with 1.10. I use Python 3.5, but MySQLdb only supports Python 2. So I chose pymysql. However, Django wants to use the session

python manage.py syncdb

I couldn't find MySQLdb and got an error.

If anyone has used MySQLdb on Django 1.10, please help us.

django mysql

2022-09-22 20:23

1 Answers

I don't know the error message, but I think it's a long-term version problem.

The syncdb command has been completely deprecated since django 1.9 version.

Please check if mysql is running and try again using makemigrations and migrate and if not, please post an error message.


2022-09-22 20:23

If you have any answers or tips

Popular Tags
python x 4647
android x 1593
java x 1494
javascript x 1427
c x 927
c++ x 878
ruby-on-rails x 696
php x 692
python3 x 685
html x 656

© 2024 OneMinuteCode. All rights reserved.