question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update for Django 4.0

See original GitHub issue

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

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

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:16
  • Comments:5

github_iconTop GitHub Comments

10reactions
vickyboston20commented, 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

5reactions
MarlonJDcommented, Feb 6, 2022

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to upgrade Django to a newer version
Read the release notes for each 'final' release from the one after your current Django version, up to and including the version to...
Read more >
How to upgrade django? - python - Stack Overflow
1- Update pip python -m pip install --upgrade pip · 2- If you already install Django update by using the following command pip...
Read more >
What's new in Django v4.0 - LogRocket Blog
With the introduction of Django v4.0, it was revealed that some lower third-party package versions will no longer be supported. Below, you'll ...
Read more >
adamchainz/django-upgrade - GitHub
django -upgrade is a commandline tool that rewrites files in place. Pass your Django version as <major>.<minor> to the --target-version flag. django-upgrade will ......
Read more >
Upgrade from Django 4.0 to Django 4.1 - Laravel Shift
The Django 4.1 Shift automates the upgrade of your Django application from Django 4.0 to Django 4.1. Using the Django 4.1 Shift to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found