Django ImportError: cannot import name 'path' - Fix and Explanation
This error occurs when you try to import the 'path' function from the 'django.conf.urls' module but it cannot be found.
The 'path' function was introduced in Django 2.0 as a new way to define URL patterns. If you are using an older version of Django, you will need to use the 'url' function instead.
To fix the error, check that you are using Django 2.0 or later and update your code to use the 'path' function instead of 'url'. If you are using an older version of Django, you can either upgrade to a newer version or use the 'url' function instead.
原文地址: https://www.cveoy.top/t/topic/ozxH 著作权归作者所有。请勿转载和采集!