2015-01-28 20:35:27 +08:00
|
|
|
from django.http import HttpResponse
|
2020-10-20 15:14:48 +08:00
|
|
|
from django.utils.decorators import method_decorator
|
|
|
|
from django.views.decorators.common import no_append_slash
|
|
|
|
from django.views.generic import View
|
2015-01-28 20:35:27 +08:00
|
|
|
|
|
|
|
|
|
|
|
def empty_view(request, *args, **kwargs):
|
2019-02-10 05:27:32 +08:00
|
|
|
return HttpResponse()
|
2020-10-20 15:14:48 +08:00
|
|
|
|
|
|
|
|
|
|
|
@no_append_slash
|
|
|
|
def sensitive_fbv(request, *args, **kwargs):
|
|
|
|
return HttpResponse()
|
|
|
|
|
|
|
|
|
|
|
|
@method_decorator(no_append_slash, name='dispatch')
|
|
|
|
class SensitiveCBV(View):
|
|
|
|
def get(self, *args, **kwargs):
|
|
|
|
return HttpResponse()
|