diff --git a/apps/utils/views.py b/apps/utils/views.py index 0cd24fe8..a8f8194d 100755 --- a/apps/utils/views.py +++ b/apps/utils/views.py @@ -54,4 +54,4 @@ class SignatureViewSet(CustomCreateModelMixin, CustomGenericViewSet): cv2.imwrite(new_path, image) return Response({'path': new_path.replace(BASE_DIR, '')}) except Exception: - raise ParseError(**SIGN_MAKE_FAIL) + raise ParseError(**SIGN_MAKE_FAIL) \ No newline at end of file diff --git a/server/settings.py b/server/settings.py index 3e421f43..5ecf51fe 100755 --- a/server/settings.py +++ b/server/settings.py @@ -28,7 +28,7 @@ DEBUG = conf.DEBUG ALLOWED_HOSTS = ['*'] -SYS_VERSION = '1.00.00' +SYS_VERSION = '1.02.00' # Application definition @@ -188,6 +188,7 @@ REST_FRAMEWORK = { 'rest_framework.filters.SearchFilter', 'rest_framework.filters.OrderingFilter' ], + 'DEFAULT_VERSIONING_CLASS': 'rest_framework.versioning.NamespaceVersioning', 'DEFAULT_PAGINATION_CLASS': 'apps.utils.pagination.MyPagination', 'DATETIME_FORMAT': '%Y-%m-%d %H:%M:%S', 'DATE_FORMAT': '%Y-%m-%d',