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

Update for Django 4.0 #650

Open
zbraniecki opened this issue Dec 14, 2021 · 6 comments
Open

Update for Django 4.0 #650

zbraniecki opened this issue Dec 14, 2021 · 6 comments

Comments

@zbraniecki
Copy link

There are several calls to deprecated APIs that were removed in Django 4.0:

  • django.conf.url.urls
  • ugettext
  • force_text
@sloughin
Copy link

Also a Django 4 upgrade issue: rest_auth attempts to import url from django.conf.urls which doesn't exist in Django 4:
see rest_auth/urls.py, line 1

@vickyboston20
Copy link

vickyboston20 commented Jan 4, 2022

There are several calls to deprecated APIs that were removed in Django 4.0:

  • django.conf.url.urls
  • ugettext
  • force_text

Temp workaround --Replace
*For django.conf.urls use
from django.urls import re_path as url
*For ugettext use
from django.utils.translation import gettext_lazy as _
*for force_text use
from django.utils.encoding import force_str as force_text

@hiporox
Copy link

hiporox commented Jan 28, 2022

This looks like it'll be resolved by #652

Can we get that merged into the next release?

@PrynsTag
Copy link

PrynsTag commented Feb 2, 2022

According to the drf documentation:

Django-rest-auth is the original project, but is not currently receiving updates.
Dj-rest-auth is a newer fork of the project.

@MarlonJD
Copy link

MarlonJD commented Feb 6, 2022

O forked and merged django 4 changes. https://pypi.org/project/django-rest-auth-forked/ we can go after now

@marcellino-ornelas
Copy link

https://github.com/iMerica/dj-rest-auth worked for me. Thanks @PrynsTag!!!!!!

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

7 participants