Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…ggs)
  • Loading branch information...
commit f00243f36df8dfe504491e03be5d5aea076340b3 1 parent 6aa1a31
@apollo13 apollo13 authored
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:
Please sign in to comment.
Something went wrong with that request. Please try again.