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()
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 becausedjango.conf.urls.url()
has been deprecated and removed in version 4 of Django. To solve this import error, I used there_path()
method instead which is fromdjango.urls.re_path()