How to Solve NameError: name 'SchemaMigration' is not defined -- south

Solution: Import the 'SchemaMigration' module

# Add the following line to the top of your code
from south.v2 import SchemaMigration

 

For more information:
south SchemaMigration