studybuffalo / django-helcim

A Django-based integration with the Helcim Commerce API
GNU General Public License v3.0
4 stars 5 forks source link

ImportError: cannot import name 'url' from 'django.conf.urls' #269

Open alexander-any7 opened 1 year ago

alexander-any7 commented 1 year ago

I have Django 4.2.1 installed. In the urls.py inside the helcim folder, the ImportError: cannot import name 'url' from 'django.conf.urls occurs because django.conf.urls.url() has been deprecated and removed in version 4 of Django. To solve this import error, I used the re_path() method instead which is from django.urls.re_path()