I just installed my virtual environment, I installed PyMysql and created a project, but when trying to start a python manage.py startapp nome
APP, the following problem occurred:
Error loading MySQLdb module: No module named 'MySQLdb'
How can I configure MySQL and resolve this?
My settings.py
:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'meudb',
'USER': 'root',
'PASSWORD': '123',
'HOST': 'localhost',
}
}