Skip to content

Commit 2e143a1

Browse files
author
patched.codes[bot]
committed
Patched introduction/playground/A9/archive.py
1 parent 577853a commit 2e143a1

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

introduction/playground/A9/archive.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
from django.http import JsonResponse
2-
from django.views.decorators.csrf import csrf_exempt
3-
42
from .main import Log
53

64

7-
@csrf_exempt
85
def log_function_target(request):
96
L = Log(request)
107
if request.method == "GET":
@@ -33,12 +30,11 @@ def log_function_target(request):
3330
return JsonResponse({"message":"method not allowed"},status = 403)
3431

3532

36-
# ======================================
37-
33+
#=====
3834
import datetime
3935

4036

41-
# f = open('test.log', 'a') --> use this file to log
37+
# f = open('test.log', 'a') --> use this file to log
4238
class Log:
4339
def __init__(self,request):
4440
self.request = request

0 commit comments

Comments
 (0)