mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	Don't cache templates in development.
(imported from commit 986df6aecb7e638eb0e017654553e812ac6e0ed2)
This commit is contained in:
		@@ -142,11 +142,14 @@ USE_X_FORWARDED_HOST = True
 | 
			
		||||
 | 
			
		||||
# List of callables that know how to import templates from various sources.
 | 
			
		||||
TEMPLATE_LOADERS = (
 | 
			
		||||
    ('django.template.loaders.cached.Loader', (
 | 
			
		||||
        'django.template.loaders.filesystem.Loader',
 | 
			
		||||
        'django.template.loaders.app_directories.Loader',
 | 
			
		||||
    )),
 | 
			
		||||
)
 | 
			
		||||
    'django.template.loaders.filesystem.Loader',
 | 
			
		||||
    'django.template.loaders.app_directories.Loader',
 | 
			
		||||
    )
 | 
			
		||||
if DEPLOYED:
 | 
			
		||||
    TEMPLATE_LOADERS = (
 | 
			
		||||
        ('django.template.loaders.cached.Loader',
 | 
			
		||||
         TEMPLATE_LOADERS),
 | 
			
		||||
        )
 | 
			
		||||
 | 
			
		||||
MIDDLEWARE_CLASSES = (
 | 
			
		||||
    # Our logging middleware should be the first middleware item.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user