django1/django/db/migrations
Aymeric Augustin b9c619abc1 Prevented makemigrations from writing in sys.path[0].
There's no reason to assume that sys.path[0] is an appropriate location
for generating code. Specifically that doesn't work with extend_sys_path
which puts the additional directories at the end of sys.path.

In order to create a new migrations module, instead of using an
arbitrary entry from sys.path, import as much as possible from the path
to the module, then create missing submodules from there.

Without this change, the tests introduced in the following commit fail,
which seems sufficient to prevent regressions for such a refactoring.
2015-02-23 19:55:10 +01:00
..
operations Fixed #24351, #24346 -- Changed the signature of allow_migrate(). 2015-02-20 21:34:09 +07:00
__init__.py Implement swappable model support for migrations 2014-01-19 16:43:12 +00:00
autodetector.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
executor.py Fixed #24366 -- Optimized traversal of large migration dependency graphs. 2015-02-23 12:38:53 +01:00
graph.py Fixed #24366 -- Optimized traversal of large migration dependency graphs. 2015-02-23 12:38:53 +01:00
loader.py Revert "Fixed #24075 -- Prevented running post_migrate signals when unapplying initial migrations of contenttypes and auth" 2015-02-07 20:14:49 +01:00
migration.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
optimizer.py Fixed typos in code comments. 2015-01-20 12:18:03 -05:00
questioner.py Limited lines to 119 characters in django/{contrib,db}. 2014-10-29 07:59:35 -04:00
recorder.py Removed the syncdb command per deprecation timeline. 2015-01-17 09:20:12 -05:00
state.py Fixed #24291 - Fixed migration ModelState generation with unused swappable models 2015-02-18 19:05:10 +01:00
topological_sort.py Fixed #23844 -- Used topological sort for migration operation dependency resolution. 2014-11-20 12:49:49 -05:00
writer.py Prevented makemigrations from writing in sys.path[0]. 2015-02-23 19:55:10 +01:00