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

The package doesn't work with django 4.0.* #661

Open
hamza-hadda opened this issue Jul 27, 2022 · 1 comment
Open

The package doesn't work with django 4.0.* #661

hamza-hadda opened this issue Jul 27, 2022 · 1 comment

Comments

@hamza-hadda
Copy link

when trying to install the recent version of django-rest-auth with Django 4 since it uses the deprecated function ugettext_lazy from django.utils.translation the error :

  File "/path/to/views/views.py", line 8, in <module>
    from rest_auth.registration.serializers import SocialLoginSerializer
  File "/path/to/python3.8/site-packages/rest_auth/registration/serializers.py", line 2, in <module>
    from django.utils.translation import ugettext_lazy as _
ImportError: cannot import name 'ugettext_lazy' from 'django.utils.translation' (/path/to/venv/lib/python3.8/site-packages/django/utils/translation/__init__.py)
@Omaraitbenhaddi
Copy link

Omaraitbenhaddi commented Aug 23, 2022

I modified it to fit Django 4.0 while waiting pull request you can use this fork https://github.com/Omaraitbenhaddi/django-rest-auth

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

2 participants