Prepare the extensions code for a migration away from Django Evolution.

Review Request #7610 — Created Aug. 25, 2015 and submitted

Information

Djblets
master

Reviewers

The extensions code has a firm dependency on Django Evolution, but down
the road, we're definitely not going to want that.

When a Django app using ExtensionManager loads, it imports
django_evolution, which on Django 1.8/1.9 results in a deprecation
warning, due to the import occurring too early in the Django
initialization cycle.

To address both of these, the migration code has been split off into its
own function that handles the importing of django_evolution. Later,
we'll be able to make this a bit smarter and have it handle official
Django migrations directly.

Unit tests pass.

No longer saw the import warnings against Django 1.8.

reviewbot
  1. Tool: Pyflakes
    Processed Files:
        djblets/extensions/manager.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        djblets/extensions/manager.py
    
    
  2. 
      
brennie
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to release-0.9.x (1c6b4fe)