2013-05-16 07:14:28 +08:00
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
2015-02-10 02:19:34 +08:00
|
|
|
from django.core.exceptions import DisallowedHost, SuspiciousOperation
|
2013-05-16 07:14:28 +08:00
|
|
|
|
|
|
|
|
|
|
|
def suspicious(request):
|
|
|
|
raise SuspiciousOperation('dubious')
|
|
|
|
|
|
|
|
|
|
|
|
def suspicious_spec(request):
|
|
|
|
raise DisallowedHost('dubious')
|