Installing your demo project gives me...
ImportError: cannot import name 'url' from 'django.conf.urls'
when I...
python manage.py migrate...
Reason for the error is that url is no longer defined in this way, since 4.0.
As a quick fix, I pinned Django in the requirements.txt under test_project, by adding
Django==3.2.7
The alternative to url, path, has been available since Django 2.0, so it must be safe to switch to using path, so that both 3.x and 4.x will run properly
Installing your demo project gives me... ImportError: cannot import name 'url' from 'django.conf.urls' when I... python manage.py migrate...
Reason for the error is that url is no longer defined in this way, since 4.0.
As a quick fix, I pinned Django in the requirements.txt under test_project, by adding Django==3.2.7
The alternative to url, path, has been available since Django 2.0, so it must be safe to switch to using path, so that both 3.x and 4.x will run properly