Added some better error reporting and path handling when creating template paths.
commit5226a1a1cea889051304e12fcc009c5b7cdd7f4e
authormtredinnick <mtredinnick@bcc190cf-cafb-0310-a4f2-bffc1f526a37>
Mon, 6 Oct 2008 06:34:54 +0000 (6 06:34 +0000)
committermtredinnick <mtredinnick@bcc190cf-cafb-0310-a4f2-bffc1f526a37>
Mon, 6 Oct 2008 06:34:54 +0000 (6 06:34 +0000)
treeec0a7fbf473ee582196300941f18a203b8906ab6
parenta4ea218fdd5647db2ac59bf3fb8af6c6156b3bac
Added some better error reporting and path handling when creating template paths.

We now raise UnicodeDecodeError for non-UTF-8 bytestrings (thanks to Daniel
Pope for diagnosing this was being swallowed by ValueError) and allow UTF-8
bytestrings as template directories.

Refs #8965.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9161 bcc190cf-cafb-0310-a4f2-bffc1f526a37
django/template/loaders/app_directories.py
django/template/loaders/filesystem.py
django/utils/_os.py
tests/regressiontests/templates/tests.py