configure mysql database django
snippet in sql

configure mysql database django

user3556

You need to make changes in project settings.py. 
Provide USER and PASSWORD for your database
If your database isn't mysql change ENGINE

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'myproject',
        'USER': 'root',
        'PASSWORD': 'rootpassword',
        'HOST': 'localhost',
        'PORT': '',
    }
}

link django to mysql

user9865

$ brew reinstall openssl
	#run two commands under "For compilers to find openssl@1.1 you may need to set:"
$ pip install mysqlclient

database setup in django

user7412

sudo apt install python3-dev libmysqlclient-dev default-libmysqlclient-dev