2014-12-14 17:17:18 +08:00
|
|
|
from django.shortcuts import render
|
2008-08-04 03:55:26 +08:00
|
|
|
|
2014-08-27 16:41:12 +08:00
|
|
|
from .models import DebugObject
|
|
|
|
|
2008-08-04 03:55:26 +08:00
|
|
|
|
|
|
|
def request_processor(request):
|
2014-12-14 17:17:18 +08:00
|
|
|
return render(request, "context_processors/request_attrs.html")
|
2014-08-27 16:41:12 +08:00
|
|
|
|
|
|
|
|
|
|
|
def debug_processor(request):
|
2016-04-09 20:09:08 +08:00
|
|
|
context = {
|
|
|
|
"debug_objects": DebugObject.objects,
|
|
|
|
"other_debug_objects": DebugObject.objects.using("other"),
|
|
|
|
}
|
2014-12-14 17:17:18 +08:00
|
|
|
return render(request, "context_processors/debug.html", context)
|