Answer the question
In order to leave comments, you need to log in
Mysql connection error?
I'm trying to host a site and I get an error when connecting to mysql. The mistake itself
File "/opt/myenv/lib/python3.7/site-packages/django/db/backends/mysql/base.py", line 36, in
raise ImproperlyConfigured('mysqlclient 1.4.0 or newer is required; you have % s.' % Database.__version__)
django.core.exceptions.ImproperlyConfigured: mysqlclient 1.4.0 or newer is required; you have 0.10.1.
python3.7 -m pip install --upgrade pymysql
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'Мое имя',
'USER': 'Мой юзер',
'PASSWORD': 'Мой пароль',
'HOST': 'localhost',
'PORT': '3306',
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question