mirror of
				https://github.com/django/django.git
				synced 2025-10-26 07:06:08 +00:00 
			
		
		
		
	[1.5.x] Fixed #20051 -- Specified where to define TEMPLATE_DIRS.
				
					
				
			This commit is contained in:
		
				
					committed by
					
						 Simon Charette
						Simon Charette
					
				
			
			
				
	
			
			
			
						parent
						
							9e920a4888
						
					
				
				
					commit
					5c78877016
				
			| @@ -445,8 +445,8 @@ live anywhere on your filesystem that Django can access. (Django runs as | ||||
| whatever user your server runs.) However, keeping your templates within the | ||||
| project is a good convention to follow. | ||||
|  | ||||
| By default, :setting:`TEMPLATE_DIRS` is empty. So, let's add a line to it, to | ||||
| tell Django where our templates live:: | ||||
| Open your settings file (``mysite/settings.py``, remember) and  add a | ||||
| :setting:`TEMPLATE_DIRS` setting:: | ||||
|  | ||||
|     TEMPLATE_DIRS = ( | ||||
|         '/path/to/mysite/templates', # Change this to your own directory. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user