mirror of
				https://github.com/django/django.git
				synced 2025-10-29 08:36:09 +00:00 
			
		
		
		
	dictionary and context_instance and superseded by context. Refactored tests that relied context_instance with more modern idioms.
		
			
				
	
	
		
			13 lines
		
	
	
		
			325 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			325 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from django.shortcuts import render
 | |
| 
 | |
| from .models import DebugObject
 | |
| 
 | |
| 
 | |
| def request_processor(request):
 | |
|     return render(request, 'context_processors/request_attrs.html')
 | |
| 
 | |
| 
 | |
| def debug_processor(request):
 | |
|     context = {'debug_objects': DebugObject.objects}
 | |
|     return render(request, 'context_processors/debug.html', context)
 |