mirror of
https://github.com/django/django.git
synced 2025-11-25 21:22:14 +00:00
Added tests for logging of Http404 warnings.
This commit is contained in:
parent
86880ab89b
commit
5e00b14403
4 changed files with 51 additions and 3 deletions
|
|
@ -1,6 +1,11 @@
|
|||
from __future__ import unicode_literals
|
||||
|
||||
from django.core.exceptions import DisallowedHost, SuspiciousOperation
|
||||
from django.http import HttpResponse
|
||||
|
||||
|
||||
def innocent(request):
|
||||
return HttpResponse('innocent')
|
||||
|
||||
|
||||
def suspicious(request):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue