Django South migrations directory outside django project -
i'm trying setup south in way location of migrations directories outside django directory. can use sout_migration_modules change location of directories within django (to every place init file), that's not enough me. unfortunately, sout_migration_modules doesn't accept full paths input.
can explain how can make south place migrations directories specified path outside django directory?
update: current directory structure:
- data
- django project
- project name
- settings.py
- django app
- migrations
- project name
idealy south puth migrations folder in data directory, outside entire django project.
as takes any module, create module outside project , add python path, e.g.:
south_migration_modules = { 'blog': '<my_foreign_module>.migrations.blog', }
another way monkey patch south's migrations
class, really, should avoid hackery.
from south.migration.base import migrations def migrations_dir(self): return #my_ugly_hack migrations.migrations_dir = migrations_dir
Comments
Post a Comment