How to setup Database in Django?

How to setup Database in Django?

To setup database in Django, follow the following steps -

  1. Install MySQL, which can be used as a database.
  2. Create initial Django Project.
  3. Edit settings as per the requirements.
  4. Install MySQL Database Connector.
  5. Create the database (as per the requirements).
  6. Add the MySQL Database connection to our application.
  7. Test MySQL connection to our application.