django-encrypted-id icon indicating copy to clipboard operation
django-encrypted-id copied to clipboard

Update django and python versions

Open wittfabian opened this issue 5 years ago • 3 comments

A lot of the tested versions are deprecated.

wittfabian avatar Jul 07 '20 13:07 wittfabian

Hey @wittfabian, thanks for alerting us. I have updated some versions. Can you please let me know what else needs updating?

amitu avatar Jul 08 '20 15:07 amitu

I would remove the old versions (Python < 3 and Django < 1.11) Additionally add new versions (Python 3.7 and 3.8, Django 2. and 3.X)

wittfabian avatar Jul 09 '20 06:07 wittfabian

Django 2.0 removes the django.core.urlresolvers module, which was moved to django.urls in version 1.10. You should change any import to use django.urls instead, like this:

from django.urls import reverse

See: https://github.com/wittfabian/django-encrypted-id

wittfabian avatar Jul 09 '20 11:07 wittfabian