Browse Source

minor changes settings.py

dmr1725 4 years ago
parent
commit
b100e82c34

BIN
server/CompanionApp/migrations/__pycache__/0001_initial.cpython-38.pyc View File


BIN
server/CompanionApp/migrations/__pycache__/0002_auto_20201103_2016.cpython-38.pyc View File


BIN
server/CompanionApp/migrations/__pycache__/__init__.cpython-38.pyc View File


+ 8
- 8
server/restful/settings.py View File

@@ -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