From d443277e28d2295067d9c23f7a91abfd50540c0e Mon Sep 17 00:00:00 2001 From: caoqianming Date: Sun, 28 Apr 2024 14:18:29 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20base=20=E7=94=9F=E4=BA=A7=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E5=85=B3=E9=97=ADswagger2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/urls.py b/server/urls.py index 7be6cba0..8c49f360 100755 --- a/server/urls.py +++ b/server/urls.py @@ -73,7 +73,7 @@ urlpatterns = [ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) + \ static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) -if settings.DEBUG: +if getattr(settings, 'ENABLE_SWAGGER', True): urlpatterns += [ # api文档 path('api/swagger/', schema_view.with_ui('swagger',