django-rest-swagger
django-rest-swagger copied to clipboard
Turn off swagger
I wonder if there is any way to turn off swagger on production environment by writing swagger settings?
Thanks.
I accomplish that by doing this in my apps urls.py
file:
if settings.DEBUG:
urlpatterns += [
url(r'^swagger/', schema_view),
]