mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Fixed #500 -- Created a TEMPLATE_FILE_EXTENSION setting that lets you override the default '.html' if you want to use a different extension (or none at all) for templates
git-svn-id: http://code.djangoproject.com/svn/django/trunk@640 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		| @@ -1,10 +1,8 @@ | ||||
| "Wrapper for loading templates from files" | ||||
| from django.conf.settings import TEMPLATE_DIRS | ||||
| from django.conf.settings import TEMPLATE_DIRS, TEMPLATE_FILE_EXTENSION | ||||
| from template import TemplateDoesNotExist | ||||
| import os | ||||
|  | ||||
| TEMPLATE_FILE_EXTENSION = '.html' | ||||
|  | ||||
| def load_template_source(template_name, template_dirs=None): | ||||
|     if not template_dirs: | ||||
|         template_dirs = TEMPLATE_DIRS | ||||
|   | ||||
		Reference in New Issue
	
	Block a user