Friday, 28 June 2019

from django.core import urlresolvers ImportError: cannot import name 'urlresolvers' from 'django.core'

This is Django Version issue.

For versions > 1.10, use

from django.urls import reverse

instead of  " from django.core import urlresolvers "

No comments:

Post a Comment

Note: only a member of this blog may post a comment.

TypeError: argument of type 'WindowsPath' is not iterable

 Please make to modify settings.py file: DATABASES = { 'default' : { 'ENGINE' : 'django.db.backends.sqlite3&...