summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorPreston Timmons <prestontimmons@gmail.com>2015-03-02 13:31:14 -0600
committerAymeric Augustin <aymeric.augustin@oscaro.com>2015-03-03 21:20:46 +0100
commit70123cf084e3af7dfc61bb7bd2090ff802c3cda4 (patch)
tree9107fd8cb2c55009df2f58371cd66e32d792b677 /docs
parent85757d0e79f4237d7cf3ee1785946315aa6959eb (diff)
Fixed #24399 -- Made filesystem loaders use more specific exceptions.
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/1.9.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/releases/1.9.txt b/docs/releases/1.9.txt
index 51bbc917d8..cc2273bd56 100644
--- a/docs/releases/1.9.txt
+++ b/docs/releases/1.9.txt
@@ -224,6 +224,19 @@ the keyword argument ``clear=True``.
assignment for many-to-many relations and as a consequence now use the new
behavior.
+Filesystem-based template loaders catch more specific exceptions
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+When using the :class:`filesystem.Loader <django.template.loaders.filesystem.Loader>`
+or :class:`app_directories.Loader <django.template.loaders.app_directories.Loader>`
+template loaders, earlier versions of Django raised a
+:exc:`~django.template.TemplateDoesNotExist` error if a template source existed
+but was unreadable. This could happen under many circumstances, such as if
+Django didn't have permissions to open the file, or if the template source was
+a directory. Now, Django only silences the exception if the template source
+does not exist. All other situations result in the original ``IOError`` being
+raised.
+
Miscellaneous
~~~~~~~~~~~~~