Browse files

Don't try to load app directory templates from apps with a path (eg e…

…ggs)
  • Loading branch information...
1 parent 6aa1a31 commit f00243f36df8dfe504491e03be5d5aea076340b3 @apollo13 apollo13 committed Dec 27, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 django/template/loaders/app_directories.py
View
2 django/template/loaders/app_directories.py
@@ -19,6 +19,8 @@ def calculate_app_template_dirs():
fs_encoding = sys.getfilesystemencoding() or sys.getdefaultencoding()
app_template_dirs = []
for app_config in apps.get_app_configs():
+ if not app_config.path:
+ continue
template_dir = os.path.join(app_config.path, 'templates')
if os.path.isdir(template_dir):
if six.PY2:

0 comments on commit f00243f

Please sign in to comment.