From fc156e23f3a702e168eb6ae1cbba9efeec1b826e Mon Sep 17 00:00:00 2001 From: ibuler Date: Mon, 6 Aug 2018 10:39:22 +0800 Subject: [PATCH] [Bugfix] ... --- apps/jumpserver/urls.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/jumpserver/urls.py b/apps/jumpserver/urls.py index 636bcb938..f48041ef1 100644 --- a/apps/jumpserver/urls.py +++ b/apps/jumpserver/urls.py @@ -30,6 +30,7 @@ schema_view = get_schema_view( ) api_url_pattern = re.compile(r'^/api/(?P\w+)/(?P\w+)/(?P.*)$') + class HttpResponseTemporaryRedirect(HttpResponse): status_code = 307 @@ -75,7 +76,7 @@ app_view_patterns = [ ] if settings.XPACK_ENABLED: - app_view_patterns.append(path('xpack/', include('xpack.urls.views_urls', namespace='xpack'))) + app_view_patterns.append(path('xpack/', include('xpack.urls', namespace='xpack'))) urlpatterns = [