<s> import os <EOL> from django . conf import settings <EOL> MIGRATION_MESSAGE = """<STR_LIT>""" <EOL> class MigrationNotComplete ( Exception ) : <EOL> pass <EOL> def assert_initial_complete ( migrator ) : <EOL> def forwards ( apps , schema_editor ) : <EOL> is_fresh_install = os . environ . get ( '<STR_LIT>' ) == '<STR_LIT:1>' <EOL> if not migrator . last_seq and not settings . UNIT_TESTING and not is_fresh_install : <EOL> raise MigrationNotComplete ( MIGRATION_MESSAGE . format ( slug = migrator . slug ) ) <EOL> return forwards </s>
