django1/django
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
..
apps Added check_apps_ready() to Apps.get_containing_app_config() 2015-02-08 14:52:19 -05:00
bin Removed bin/unique-messages.py 2015-02-06 08:47:38 -05:00
conf Added formats for the Azerbaijani locale. 2015-02-23 07:37:13 -05:00
contrib Fixed #24381 -- removed ForeignObjectRel opts and to_opts 2015-02-23 07:24:43 -05:00
core Fixed a few uses of Template that relied on a default engine. 2015-02-22 23:13:55 +01:00
db Prevented makemigrations from writing in sys.path[0]. 2015-02-23 19:55:10 +01:00
dispatch Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
forms Fixed #24377 -- Fixed model inline formsets with primary key's that have defaults. 2015-02-23 08:44:27 -05:00
http Fixed #20889 -- Prevented BadHeaderError when Python inserts newline 2015-02-19 20:18:31 +01:00
middleware Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
template Removed a non-obvious side-effect of assigning Context.template. 2015-02-20 22:27:48 +01:00
templatetags Set context.template instead of context.engine while rendering. 2015-02-19 22:08:11 +01:00
test Deprecated TEMPLATE_DEBUG setting. 2015-02-15 20:47:04 +01:00
utils Prevented makemigrations from writing in sys.path[0]. 2015-02-23 19:55:10 +01:00
views Fixed a few uses of Template that relied on a default engine. 2015-02-22 23:13:55 +01:00
__init__.py Bumped version; master is now 1.9 pre-alpha. 2015-01-16 17:04:35 -05:00
shortcuts.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00