$ ./manage.py sqlall name-app

'''
CommandError: App 'name-app' has migrations. 
Only the sqlmigrate and sqlflush commands can be used when an app has migrations.
'''

So there before migrate to see it.

Create sql-all.py