浏览代码

minor changes settings.py

dmr1725 4 年前
父节点
当前提交
b100e82c34

二进制
server/CompanionApp/migrations/__pycache__/0001_initial.cpython-38.pyc 查看文件


二进制
server/CompanionApp/migrations/__pycache__/0002_auto_20201103_2016.cpython-38.pyc 查看文件


二进制
server/CompanionApp/migrations/__pycache__/__init__.cpython-38.pyc 查看文件


+ 8
- 8
server/restful/settings.py 查看文件

@@ -73,7 +73,7 @@ INSTALLED_APPS = [
73 73
     'corsheaders',
74 74
 ]
75 75
 
76
-SITE_ID = 2
76
+SITE_ID = 3
77 77
 
78 78
 MIDDLEWARE = [
79 79
     'django.middleware.security.SecurityMiddleware',
@@ -105,13 +105,13 @@ TEMPLATES = [
105 105
     },
106 106
 ]
107 107
 
108
-# REST_FRAMEWORK = {
109
-#     # 'DEFAULT_AUTHENTICATION_CLASSES': (
110
-#     #     'rest_framework.authentication.TokenAuthentication',
111
-#     # ),
112
-#     'DEFAULT_PERMISSION_CLASSES': (
113
-#         'rest_framework.permissions.IsAuthenticated', )
114
-# }
108
+REST_FRAMEWORK = {
109
+    # 'DEFAULT_AUTHENTICATION_CLASSES': (
110
+    #     'rest_framework.authentication.TokenAuthentication',
111
+    # ),
112
+    'DEFAULT_PERMISSION_CLASSES': (
113
+        'rest_framework.permissions.IsAuthenticated', )
114
+}
115 115
 
116 116
 ALLOWED_HOSTS = ['*']
117 117