error: django.core.exceptions.ImproperlyConfigured: 'django.db.backends.mysql
I can use mysql in vscode terminal and mysqlclient installs no issues. But when trying to enter mysql in database settings in settings.py says:
‘django.db.backends.mysql’ isn’t an available database backend or couldn’t be imported. Check the above exception. To use one of the built-in backends, use ‘django.db.backends.XXX’, where XXX is one of:
‘oracle’, ‘postgresql’, ‘sqlite3’
My code:
DATABASES = {
‘default’: {
‘ENGINE’: ‘django.db.backends.mysql’,
‘NAME’: ‘storefront’,
‘HOST’: ‘localhost’,
‘USER’: ‘root’,
‘PASSWORD’: ‘mypassword’
}
}
Thanks in advance. Really stuck, cant find liegit answer online. Tried deactivating virtual env and reinstalling requirements but did not work.