Skip to content

get_api_root_view() got an unexpected keyword argument 'api_urls' #3

@G-linch

Description

@G-linch

hi,guys:

i got a error:

TypeError: get_api_root_view() got an unexpected keyword argument 'api_urls'

i check the get_api_root_views(),as the error.no parameter

this is in cmd:

  url(r'^api/', include(router.urls, namespace='api')),
  File "C:\Python34\rest1\lib\site-packages\rest_framework\routers.py", line 82, in urls
    self._urls = self.get_urls()
  File "C:\Python34\rest1\project\project\routers.py", line 30, in get_urls
    urls = super(HybridRouter, self).get_urls()
  File "C:\Python34\rest1\lib\site-packages\rest_framework\routers.py", line 378, in get_urls
    view = self.get_api_root_view(api_urls=urls)
TypeError: get_api_root_view() got an unexpected keyword argument 'api_urls'

how can i fixed it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions