How to Connect Python Django with MySql Database

How to Connect Python Django with MySql Database

Python Django connection with MySQL

 

You just need to follow the steps

Create a database in cPanel, create a user for database, and give all permissions to the user.

 

Step 1:

Replace your existing Database in Settings.py in your project:

 

DATABASES = {
    'default': …