You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/home/anton/.virtualenvs/slated/lib/python3.6/site-packages/django/core/handlers/exception.py", line 35, in inner
response = get_response(request)
File "/home/anton/.virtualenvs/slated/lib/python3.6/site-packages/django/core/handlers/base.py", line 158, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/home/anton/.virtualenvs/slated/lib/python3.6/site-packages/django/core/handlers/base.py", line 156, in _get_response
response = response.render()
File "/home/anton/.virtualenvs/slated/lib/python3.6/site-packages/django/template/response.py", line 106, in render
self.content = self.rendered_content
File "/home/anton/.virtualenvs/slated/lib/python3.6/site-packages/rest_framework/response.py", line 72, in rendered_content
ret = renderer.render(self.data, accepted_media_type, context)
File "/home/anton/.virtualenvs/slated/lib/python3.6/site-packages/drf_yasg/renderers.py", line 71, in render
self.set_context(renderer_context, swagger)
File "/home/anton/.virtualenvs/slated/lib/python3.6/site-packages/drf_yasg/renderers.py", line 121, in set_context
super(SwaggerUIRenderer, self).set_context(renderer_context, swagger)
File "/home/anton/.virtualenvs/slated/lib/python3.6/site-packages/drf_yasg/renderers.py", line 83, in set_context
renderer_context.update(self.get_auth_urls())
File "/home/anton/.virtualenvs/slated/lib/python3.6/site-packages/drf_yasg/renderers.py", line 103, in get_auth_urls
'LOGIN_URL': self.resolve_url(swagger_settings.LOGIN_URL),
File "/home/anton/.virtualenvs/slated/lib/python3.6/site-packages/drf_yasg/renderers.py", line 92, in resolve_url
to, args, kwargs = to
ValueError: too many values to unpack (expected 3)
Debugging info
The text was updated successfully, but these errors were encountered:
def resolve_url(self, to):
if to is None:
return None
from django.utils.functional import Promise
to = str(to) if isinstance(to, Promise) else to
args, kwargs = None, None
if not isinstance(to, six.string_types):
if len(to) > 2:
to, args, kwargs = to
elif len(to) == 2:
to, kwargs = to
args = args or ()
kwargs = kwargs or {}
return resolve_url(to, *args, **kwargs)
Versions
Settings
Traceback
Debugging info
The text was updated successfully, but these errors were encountered: