File tree 2 files changed +2
-19
lines changed
2 files changed +2
-19
lines changed Original file line number Diff line number Diff line change 1
1
from django .http import HttpResponse
2
- from django .views .decorators .csrf import csrf_exempt
3
2
4
3
5
4
def index (request ):
@@ -10,6 +9,5 @@ def get_user(request, id):
10
9
return HttpResponse (id )
11
10
12
11
13
- @csrf_exempt
14
12
def create_user (request ):
15
13
return HttpResponse (status = 200 )
Original file line number Diff line number Diff line change 16
16
17
17
# Application definition
18
18
19
- INSTALLED_APPS = [
20
- "django.contrib.admin" ,
21
- "django.contrib.auth" ,
22
- "django.contrib.contenttypes" ,
23
- "django.contrib.sessions" ,
24
- "django.contrib.messages" ,
25
- "django.contrib.staticfiles" ,
26
- ]
19
+ INSTALLED_APPS = []
27
20
28
- MIDDLEWARE = [
29
- "django.middleware.security.SecurityMiddleware" ,
30
- "django.contrib.sessions.middleware.SessionMiddleware" ,
31
- "django.middleware.common.CommonMiddleware" ,
32
- "django.middleware.csrf.CsrfViewMiddleware" ,
33
- "django.contrib.auth.middleware.AuthenticationMiddleware" ,
34
- "django.contrib.messages.middleware.MessageMiddleware" ,
35
- "django.middleware.clickjacking.XFrameOptionsMiddleware" ,
36
- ]
21
+ MIDDLEWARE = []
37
22
38
23
ROOT_URLCONF = "app.urls"
39
24
You can’t perform that action at this time.
0 commit comments