Tivix/django-rest-auth

Update for Django 4.0

zbraniecki opened this issue ยท 6 comments

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

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

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

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

This looks like it'll be resolved by #652

Can we get that merged into the next release?

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.

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