mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Merged regressiontests and modeltests into the test root.
This commit is contained in:
8
tests/context_processors/views.py
Normal file
8
tests/context_processors/views.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from django.core import context_processors
|
||||
from django.shortcuts import render_to_response
|
||||
from django.template.context import RequestContext
|
||||
|
||||
|
||||
def request_processor(request):
|
||||
return render_to_response('context_processors/request_attrs.html',
|
||||
RequestContext(request, {}, processors=[context_processors.request]))
|
||||
Reference in New Issue
Block a user