Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot import name 'list_route' from 'rest_framework.decorators' #405

Closed
alexseitsinger opened this issue Jul 15, 2019 · 7 comments
Closed

Comments

@alexseitsinger
Copy link

alexseitsinger commented Jul 15, 2019

After an update, I receive the following error at runtime:

cannot import name 'list_route' from 'rest_framework.decorators'

Current Versions:

  • djoser==1.7.0
  • djangorestframework==3.10.0

Stack:

  1. djoser/urls/__init__.py:
    from .base import urlpatterns
  2. djoser/urls/base.py:
    from djoser import views
  3. djoser/views.py:
    from rest_framework.decorators import list_route

You can see the deprecation notes here
Thanks!

@hvdklauw
Copy link

See also: #370

@hvdklauw
Copy link

And #404

@Spriithy
Copy link

Got the same problem, but it is actually blocking when starting a new django rest / djoser project. Can't run the server at all... Any solution besides waiting ? Thanks in advance

@dekoza
Copy link
Contributor

dekoza commented Jul 21, 2019

djoser<2 is not compatible with drf>=3.10 - please freeze drf as <3.10 for the time being, we're working on new djoser release.

@Spriithy
Copy link

Great ! When do you plan on rolling out the new djoser release ?

@dekoza
Copy link
Contributor

dekoza commented Jul 22, 2019

@Spriithy this week, stay tuned 😄

@dekoza
Copy link
Contributor

dekoza commented Jul 23, 2019

Djoser 2.0 released, I'm closing this. Note that djoser-2.0 is not fully compatible with djoser-1.x and DRF<3.10

@dekoza dekoza closed this as completed Jul 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants