encode / django-rest-framework

Web APIs for Django. 🎸
https://www.django-rest-framework.org
Other
28.38k stars 6.84k forks source link

from django.utils.translation import ugettext_lazy as _ #9226

Closed mitulparmar7161 closed 8 months ago

mitulparmar7161 commented 9 months ago

from django.utils.translation import ugettextlazy as

getting this error while using any routes of rest framework

Ayatade commented 9 months ago

How do you suggest this issue be fixed?

mitulparmar7161 commented 8 months ago

How do you suggest this issue be fixed? from django.utils.translation import ugettextlazy as

ugettextlazy as is now changed to gettextlazy as in django-4 i use "rest-auth-dj4" to fix this error and its working fine for me but now django-5 is relesed so that "rest-auth-dj4" is not working on this version (django5)

ulgens commented 8 months ago

@mitulparmar7161 Which version of DRF you are using? Without any additional packages, this problem shouldn't exist in the latest version. If you have the latest DRF and Python, but still getting that error with rest-auth-dj4, it seems like the problem is in that package.

I tried to check the dependencies of that, thinking it's a package but it doesn't exist on PyPI.

mitulparmar7161 commented 8 months ago

@ulgens

I was using latest version of Django == 5.0.2 and DRF = 3.14.1 but was still encountering an error due to Django's latest version, when i downgrade Django version to 4.2.1 it started working for me

auvipy commented 8 months ago

i think it is not a DRF issue