niwinz / django-jinja

Simple and nonobstructive jinja2 integration with Django.
http://niwinz.github.io/django-jinja/latest/
BSD 3-Clause "New" or "Revised" License
363 stars 102 forks source link

RemovedInDjango40Warning: smart_text() #258

Closed zain closed 4 years ago

zain commented 4 years ago

Running the latest Django, I get the following warning:

/.../python3.8/site-packages/django_jinja/backend.py:80: RemovedInDjango40Warning: smart_text() is deprecated in favor of smart_str().
    return smart_text(token)
ShaheedHaque commented 4 years ago

~While you are there~:

jinja2/runtime.py:289: RemovedInDjango40Warning: django.utils.translation.ugettext() is deprecated in favor of django.utils.translation.gettext()

Sorry, that's in jinja2 itself...