jazzband / djangorestframework-simplejwt

A JSON Web Token authentication plugin for the Django REST Framework.
https://django-rest-framework-simplejwt.readthedocs.io/
MIT License
3.83k stars 653 forks source link

Import Error on Django 5 #789

Closed lekjos closed 2 months ago

lekjos commented 2 months ago

Understanding that there isn't official support for the package on django 5.x yet, it appears that it should work if the django.timezone.utc import is switched over to datetime.timezone.utc per the docs: https://django.readthedocs.io/en/stable/internals/deprecation.html#deprecation-removed-in-5-0

image

I'd be happy to open a PR and make the change

lekjos commented 2 months ago

Never mind, looks like someone already did that!