MIGRATION_MODULES = {
'oauth_access': 'thirdparty_migrations.oauth_access_migrations',
}
Some background we are using buildout to handle dependancies. Now what stumps me is for some reason when running make migrations oath_access the module is being created under the ipython egg. This happens regardless of where I put my own module of thirdparty_migrations it just ignores it.
Is there some other setting that I am missing to specify the location for a 3rd party migration?
--
Bruce
create_path = os.path.join(upath(sys.path[0]), *package_dirs)
Which is automatically using the first path location in the system path list. Unfortunately with the way our buildout handles paths this is causing a problem:
In manage.py:
import sys
sys.path[0:0] = [
'/vagrant/eggs/ipython-3.0.0-py2.7.egg', # This is where the MIGRATION_MODULES is creating the app specific migration package.
'/vagrant/eggs/httplib2-0.9.1-py2.7.egg',
'/vagrant/eggs/oauth2-1.5.211-py2.7.egg',
...
]
This looks to be a bug to me because there is no guarantee the first path location is the one you want this package to be created in.
--
Bruce