mirror of
				https://github.com/django/django.git
				synced 2025-11-04 05:35:37 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			407 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			407 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,
 | 
						|
        'other_debug_objects': DebugObject.objects.using('other'),
 | 
						|
    }
 | 
						|
    return render(request, 'context_processors/debug.html', context)
 |