summaryrefslogtreecommitdiff
path: root/django/utils/module_loading.py
AgeCommit message (Collapse)Author
2013-03-31Fixed #20167 -- Preserve the traceback of `ImportError`s in `import_by_path`.Joe Friedl
Thanks @carljm for the review.
2013-02-04Fixed #17061 -- Factored out importing object from a dotted pathClaude Paroz
Thanks Carl Meyer for the report.
2011-08-28Fixed #15525 -- Custom template tags loading breaks whenever templatetags is ↵Chris Beaven
a python file git-svn-id: http://code.djangoproject.com/svn/django/trunk@16703 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-07-10Properly implement PEP 302 in the module_loading module. For unknown ↵Alex Gaynor
reasons this doesn't actually raise an error under CPython, but PyPy does, and the currently implementation is clearly in violation of the PEP, which states that finder.find_module's second argument is either None or package.__path__ and imp.find_module whose second argument should be either None or a list of paths. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16531 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-04-22Fixed #15662 -- Made sure the module_has_submodule utility function follow ↵Jannis Leidel
correct PEP 302, passing the package as the second argument to the find_module method of the importer. Thanks, Bradley Ayers. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16075 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-30Fixed #14698 -- Ensure that module_has_sumodule doesn't mistake a cache miss ↵Russell Keith-Magee
for an existent package. Thanks to Łukasz Rekucki for the report and patch, and to shields for the test case. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15362 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-05-04Fixed #13464 -- Reworked module_has_submodule to break the requirement for ↵Russell Keith-Magee
loader and finder to be the same class. Thanks to Alex Gaynor for the report and patch, and Brett Cannon for suggesting the approach. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13082 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-04-25Fixed #13404 -- Reworked module_has_submodule() to allow it to work under ↵Russell Keith-Magee
AppEngine. Thanks to Waldemar Kornewald for the report and testing help. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13023 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-04-15Fixed #13348: Restored ability to load models from apps in eggs. Thanks ↵Karen Tracey
Ramiro and metzen for pointers on how to find out if a module loaded from an egg has a particular submodule. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12982 bcc190cf-cafb-0310-a4f2-bffc1f526a37