|
@@ -35,9 +35,11 @@ MIDDLEWARE = [
|
|
|
|
|
|
|
|
|
|
|
|
|
REST_FRAMEWORK = {
|
|
REST_FRAMEWORK = {
|
|
|
|
|
+ 'EXCEPTION_HANDLER': ('smartfarming.permissions.author_error.custom_exception_handler'),
|
|
|
'DEFAULT_PERMISSION_CLASSES': (
|
|
'DEFAULT_PERMISSION_CLASSES': (
|
|
|
'smartfarming.permissions.smking.LoginPermission',
|
|
'smartfarming.permissions.smking.LoginPermission',
|
|
|
- )
|
|
|
|
|
|
|
+ ),
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
CORS_ORIGIN_WHITELIST = ()
|
|
CORS_ORIGIN_WHITELIST = ()
|