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