2014-12-14 09:17:18 +00:00
|
|
|
from django.shortcuts import render
|
2008-08-03 19:55:26 +00:00
|
|
|
|
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-12-14 09:17:18 +00:00
|
|
|
return render(request, 'context_processors/request_attrs.html')
|
2014-08-27 08:41:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
def debug_processor(request):
|
2014-12-14 09:17:18 +00:00
|
|
|
context = {'debug_objects': DebugObject.objects}
|
|
|
|
return render(request, 'context_processors/debug.html', context)
|