mirror of
https://github.com/django/django.git
synced 2024-11-18 15:34:16 +00:00
12 lines
248 B
Python
12 lines
248 B
Python
|
from __future__ import unicode_literals
|
||
|
|
||
|
from django.core.exceptions import SuspiciousOperation, DisallowedHost
|
||
|
|
||
|
|
||
|
def suspicious(request):
|
||
|
raise SuspiciousOperation('dubious')
|
||
|
|
||
|
|
||
|
def suspicious_spec(request):
|
||
|
raise DisallowedHost('dubious')
|