$ python manage.py sqlmigrate <app_name> <migration_number> #Ex: $ python manage.py sqlmigrate polls 0001 # It will show the sql quires of specific migrations