Changeset 9411 for django/trunk/django/template/loaders
- Timestamp:
- 11/13/08 13:03:42 (2 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/template/loaders/app_directories.py
r9161 r9411 5 5 6 6 import os 7 import sys 7 8 8 9 from django.conf import settings … … 12 13 13 14 # At compile time, cache the directories to search. 15 fs_encoding = sys.getfilesystemencoding() or sys.getdefaultencoding() 14 16 app_template_dirs = [] 15 17 for app in settings.INSTALLED_APPS: … … 28 30 template_dir = os.path.join(os.path.dirname(mod.__file__), 'templates') 29 31 if os.path.isdir(template_dir): 30 app_template_dirs.append(template_dir )32 app_template_dirs.append(template_dir.decode(fs_encoding)) 31 33 32 34 # It won't change, so convert it to a tuple to save memory.
