django1/django/utils
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
..
translation Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
__init__.py Imported Django from private SVN repository (created from r. 8825) 2005-07-13 01:25:57 +00:00
_os.py Removed rmtree_errorhandler. 2015-02-22 23:09:42 +01:00
archive.py Fixed #22681 -- Made TarArchive recognize leading directories properly. 2014-06-03 12:00:33 -04:00
autoreload.py Removed some obsolete absolute_imports. 2015-02-09 13:37:23 -05:00
baseconv.py More attacking E302 violators 2013-11-02 13:12:09 -07:00
cache.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
checksums.py Fixed #23613 -- Deprecated django.utils.checksums 2014-10-10 09:22:20 -04:00
crypto.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
datastructures.py Removed django.utils.datastructures.SortedDict per deprecation timeline. 2015-01-17 08:40:23 -05:00
dateformat.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
dateparse.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
dates.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
datetime_safe.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
deconstruct.py Removed some obsolete absolute_imports. 2015-02-09 13:37:23 -05:00
decorators.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
deprecation.py Advanced deprecation warnings for Django 1.9. 2015-01-19 12:22:41 -05:00
duration.py Fixed #2443 -- Added DurationField. 2014-12-20 18:28:29 +00:00
encoding.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
feedgenerator.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
formats.py Removed some obsolete absolute_imports. 2015-02-09 13:37:23 -05:00
functional.py Optimized allow_lazy() by not generating a new lazy wrapper on each invocation. 2015-02-08 14:56:57 -05:00
html.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
html_parser.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
http.py Fixed #24321 -- Improved `utils.http.same_origin` compliance with RFC6454 2015-02-12 08:58:35 +01:00
ipv6.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
itercompat.py Fixed #20746 -- Removed Python 2.6 specific code/docs 2013-07-14 13:02:55 -04:00
jslex.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
log.py Removed old import aliases. 2015-02-05 19:37:01 -05:00
lorem_ipsum.py Limited lines to 119 characters in django/ 2014-09-05 09:22:16 -04:00
lru_cache.py Fixed typo in lru_cache.py; refs #21351. 2013-11-12 18:45:35 +01:00
module_loading.py Prevented makemigrations from writing in sys.path[0]. 2015-02-23 19:55:10 +01:00
numberformat.py Fixed #24181 -- Fixed multi-char THOUSAND_SEPARATOR insertion 2015-02-08 20:00:57 +01:00
regex_helper.py Fixed typos in code comments. 2015-01-20 12:18:03 -05:00
safestring.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
six.py Updated six to 1.9.0. 2015-01-02 12:35:41 -05:00
synch.py Removed threading fallback imports. 2015-01-28 10:23:25 -05:00
termcolors.py Fixed #23968 -- Replaced list comprehension with generators and dict comprehension 2014-12-08 07:58:23 -05:00
text.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
timesince.py Correct flake8 E302 violations 2013-11-02 19:53:29 -04:00
timezone.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
tree.py Removed legacy ORM lookup support per deprecation timeline; refs #16187. 2015-01-19 11:11:30 -05:00
version.py Fixed #23866 -- Harmonized refs to Django documentation from code 2014-12-25 13:53:13 +01:00
xmlutils.py More attacking E302 violators 2013-11-02 13:12:09 -07:00