You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#20 1.022 File "/usr/local/lib/python3.9/site-packages/raster/urls.py", line 1, in <module>
#20 1.022 from django.conf.urls import url
#20 1.022 ImportError: cannot import name 'url' from 'django.conf.urls' (/usr/local/lib/python3.9/site-packages/django/conf/urls/__init__.py)
------
and needs to be changed to support Django 4.0+ as django.conf.urls.url() was deprecated in Django 3.0, and is removed in Django 4.0+.
I believe a simple fix is to replace this with from django.urls import re_path as url
The text was updated successfully, but these errors were encountered:
For future readers, I have forked this repository and made the necessary changes for it to support Django version 4 and up. You can find it here: https://github.com/amserra/django-raster4
Note that I do not intend to build new features, just support the new Django version(s) for as long as I need the package.
It seems this line:
django-raster/raster/urls.py
Line 1 in 34fffe3
Is giving an error:
and needs to be changed to support Django 4.0+ as
django.conf.urls.url()
was deprecated in Django 3.0, and is removed in Django 4.0+.I believe a simple fix is to replace this with
from django.urls import re_path as url
The text was updated successfully, but these errors were encountered: