📜  csrf_exempt - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:38.999000             🧑  作者: Mango

代码示例1
#first you need to import this
from django.views.decorators.csrf import csrf_exempt

#now use @csrf_exempt dacorator as follows

@csrf_exempt
def exampleview(request):
    pass
    #now this view will not require csrf_token to handle post requests