2008-08-03 19:55:26 +00:00
|
|
|
from django.core import context_processors
|
|
|
|
from django.shortcuts import render_to_response
|
|
|
|
from django.template.context import RequestContext
|
|
|
|
|
2014-08-27 08:41:12 +00:00
|
|
|
from .models import DebugObject
|
|
|
|
|
2008-08-03 19:55:26 +00:00
|
|
|
|
|
|
|
def request_processor(request):
|
2014-08-27 08:41:12 +00:00
|
|
|
return render_to_response(
|
|
|
|
'context_processors/request_attrs.html',
|
2008-08-03 19:55:26 +00:00
|
|
|
RequestContext(request, {}, processors=[context_processors.request]))
|
2014-08-27 08:41:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
def debug_processor(request):
|
|
|
|
return render_to_response(
|
|
|
|
'context_processors/debug.html',
|
|
|
|
RequestContext(request, {
|
|
|
|
'debug_objects': DebugObject.objects,
|
|
|
|
}, processors=[context_processors.debug]))
|