Tivix / django-rest-auth

This app makes it extremely easy to build Django powered SPA's (Single Page App) or Mobile apps exposing all registration and authentication related functionality as CBV's (Class Base View) and REST (JSON)
www.tivix.com
MIT License
2.4k stars 662 forks source link

Update for Django 4.0 #650

Open zbraniecki opened 2 years ago

zbraniecki commented 2 years ago

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

sloughin commented 2 years ago

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 commented 2 years ago

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 gettextlazy as *for force_text use from django.utils.encoding import force_str as force_text

hiporox commented 2 years ago

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?

PrynsTag commented 2 years ago

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 commented 2 years ago

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

marcellino-ornelas commented 1 year ago

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