# Use the sqlmigrate command from manage.py. python manage.py sqlmigrate <appname> <migration number eg. 0001 or 0004> # example: python manage.py sqlmigrage pages 0001 # output: # CREATE TABLE... SQL