django-rest-auth icon indicating copy to clipboard operation
django-rest-auth copied to clipboard

Update for Django 4.0

Open zbraniecki opened this issue 3 years ago • 6 comments

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

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

zbraniecki avatar Dec 14 '21 09:12 zbraniecki

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

sloughin avatar Dec 23 '21 15:12 sloughin

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

vickyboston20 avatar Jan 04 '22 12:01 vickyboston20

This looks like it'll be resolved by https://github.com/Tivix/django-rest-auth/pull/652

Can we get that merged into the next release?

hiporox avatar Jan 28 '22 00:01 hiporox

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.

PrynsTag avatar Feb 02 '22 00:02 PrynsTag

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

MarlonJD avatar Feb 06 '22 01:02 MarlonJD

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

marcellino-ornelas avatar Apr 13 '23 21:04 marcellino-ornelas