mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Fixed #19357 -- Allow non-ASCII chars in filesystem paths
Thanks kujiu for the report and Aymeric Augustin for the review.
This commit is contained in:
		| @@ -14,6 +14,7 @@ from django.core import urlresolvers | ||||
| from django.contrib.admindocs import utils | ||||
| from django.contrib.sites.models import Site | ||||
| from django.utils.importlib import import_module | ||||
| from django.utils._os import upath | ||||
| from django.utils import six | ||||
| from django.utils.translation import ugettext as _ | ||||
| from django.utils.safestring import mark_safe | ||||
| @@ -311,7 +312,7 @@ def load_all_installed_template_libraries(): | ||||
|         try: | ||||
|             libraries = [ | ||||
|                 os.path.splitext(p)[0] | ||||
|                 for p in os.listdir(os.path.dirname(mod.__file__)) | ||||
|                 for p in os.listdir(os.path.dirname(upath(mod.__file__))) | ||||
|                 if p.endswith('.py') and p[0].isalpha() | ||||
|             ] | ||||
|         except OSError: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user