ImportError: No module named ‘django.core.urlresolvers’
If you are seeing this error message, it means that your Django project is trying to import the ‘django.core.urlresolvers’ module, but it is unable to find it.
This error typically occurs when you are using an older version of Django (1.11 or earlier) and trying to import ‘urlresolvers’ in your code. In newer versions of Django (2.0 and later), the ‘urlresolvers’ module has been deprecated and replaced with ‘django.urls’.
To fix this error, you will need to update your code to use the newer ‘django.urls’ module instead. This can be done by changing your import statement from:
from django.core.urlresolvers import reverse
to:
from django.urls import reverse
Make sure to also update any other references to ‘urlresolvers’ in your code as necessary.
Once you have made these changes, the ‘ImportError: No module named ‘django.core.urlresolvers” should be resolved and your Django project should be able to import the necessary modules successfully.