python manage.py shell_plus --print-sql
Here is what the above code is Doing:
1. We’re importing the models we want to work with.
2. We’re creating a new instance of the model.
3. We’re saving the instance to the database.
4. We’re printing the SQL query that Django will run.