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):
|
2022-02-03 19:24:19 +00:00
|
|
|
return render(request, "context_processors/request_attrs.html")
|
2014-08-27 08:41:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
def debug_processor(request):
|
2016-04-09 12:09:08 +00:00
|
|
|
context = {
|
2022-02-03 19:24:19 +00:00
|
|
|
"debug_objects": DebugObject.objects,
|
|
|
|
"other_debug_objects": DebugObject.objects.using("other"),
|
2016-04-09 12:09:08 +00:00
|
|
|
}
|
2022-02-03 19:24:19 +00:00
|
|
|
return render(request, "context_processors/debug.html", context)
|