I have settings like this
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': os.environ.get('DB_NAME'),
'USER': os.environ.get('DB_USER'),
'PASSWORD': os.environ.get('DB_PASS'),
'HOST': os.environ.get('DB_HOST'),
'PORT': os.environ.get('DB_PORT')
}
in my main init file I added these lines:
import pymysql
pymysql.install_as_MySQLdb()
I have error like this now:
django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3.
I found solution in stackoverflow, but it is bad solution. Because when i to try start my django project in the server, this solution doesn't work.