Add a project setting to disable automatic Django Evolution behavior.

Review Request #7585 — Created Aug. 13, 2015 and submitted

Information

Django Evolution
master

Reviewers

When projects begin migrating to Django migrations and away from Django
Evolution, we'll want to ensure that Django Evolution doesn't attempt to
make any further changes to the database.

A new settings.DJANGO_EVOLUTION_ENABLED flag (defaulting to True) is
now supported. When turned off, Django Evolution won't listen for syncdb
anymore, and the evolve command will exit with an error.

Set DJANGO_EVOLUTION_ENABLED = False and ran syncdb and evolve.

syncdb didn't try to invoke the Django Evolution logic, and evolve gave
me an error saying that evolutions were disabled for the project.

reviewbot
  1. Tool: Pyflakes
    Processed Files:
        django_evolution/management/__init__.py
        django_evolution/management/commands/evolve.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        django_evolution/management/__init__.py
        django_evolution/management/commands/evolve.py
    
    
  2. 
      
david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to master (24d24b4)