1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #22572 -- override_settings(ROOT_URLCONF) didn't clear urlresolvers._urlconfs.

Thanks Anubhav Joshi and Tim Graham for the reviews.
This commit is contained in:
Loic Bistuer
2014-05-04 21:29:49 +07:00
parent 3b7c66a3ac
commit 942556df2f
3 changed files with 34 additions and 16 deletions

View File

@@ -13,3 +13,7 @@ def get_person(request, pk):
def no_template_used(request):
template = loader.get_template_from_string("This is a string-based template")
return HttpResponse(template.render(Context({})))
def empty_response(request):
return HttpResponse('')