diff --git a/rest_framework_swagger/renderers.py b/rest_framework_swagger/renderers.py index 61768f2a..b4b34a52 100644 --- a/rest_framework_swagger/renderers.py +++ b/rest_framework_swagger/renderers.py @@ -41,6 +41,7 @@ def get_customizations(self): data = {} if swagger_settings.SECURITY_DEFINITIONS: data['securityDefinitions'] = swagger_settings.SECURITY_DEFINITIONS + data['basePath'] = swagger_settings.BASE_PATH return data diff --git a/rest_framework_swagger/settings.py b/rest_framework_swagger/settings.py index c4a5dbd5..9084a013 100644 --- a/rest_framework_swagger/settings.py +++ b/rest_framework_swagger/settings.py @@ -25,6 +25,7 @@ 'patch' ], 'VALIDATOR_URL': '', + 'BASE_PATH': '', } IMPORT_STRINGS = []