mirror of
https://github.com/django/django.git
synced 2024-12-28 12:06:22 +00:00
a8b70d251d
Backport of 0ed7d15563
from master
12 lines
248 B
Python
12 lines
248 B
Python
from __future__ import unicode_literals
|
|
|
|
from django.core.exceptions import DisallowedHost, SuspiciousOperation
|
|
|
|
|
|
def suspicious(request):
|
|
raise SuspiciousOperation('dubious')
|
|
|
|
|
|
def suspicious_spec(request):
|
|
raise DisallowedHost('dubious')
|