code: def replaced_by_django_migrations(func, *args, **kwargs):
      
  
      DjangoSettings()  # trigger helpful messages if Django is missing
  
      import django
      if django.VERSION >= (1, 7):
          print("Django 1.7+ has its own migrations system.")
          print("Use this instead: `invoke managepy makemigrations`")
          sys.exit(1)
      return func(*args, **kwargs)
docs: Decorator to preempt South requirement