# Use the sqlmigrate command from manage.py. python manage.py sqlmigrate # example: python manage.py sqlmigrage pages 0001 # output: # CREATE TABLE... SQL