diff --git a/rest_auth/urls.py b/rest_auth/urls.py index ca2cefe..766d09f 100644 --- a/rest_auth/urls.py +++ b/rest_auth/urls.py @@ -27,7 +27,7 @@ urlpatterns = patterns('rest_auth.views', name='rest_password_change'), ) -if settings.DEBUG: +if settings.DEBUG and not settings.IS_TEST: urlpatterns += patterns('', # Swagger Docs url(r'^docs/',