django-rest-swagger icon indicating copy to clipboard operation
django-rest-swagger copied to clipboard

Turn off swagger

Open dolare opened this issue 6 years ago • 1 comments

I wonder if there is any way to turn off swagger on production environment by writing swagger settings?

Thanks.

dolare avatar Jan 25 '18 01:01 dolare

I accomplish that by doing this in my apps urls.py file:

if settings.DEBUG:
    urlpatterns += [
        url(r'^swagger/', schema_view),
    ]

jd-boyd avatar Mar 06 '18 08:03 jd-boyd