Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update import library to support latest version of Django 2.2 #49

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

AdnanKhan-cmd
Copy link

Django 2.0 and 2.2 removes the django.core.urlresolvers module, which was moved to django.urls in version 1.10. You should change any import to use django.urls instead, like this:

from django.urls import reverse
Note that Django 2.0 removes some features that previously were in django.core.urlresolvers, so you might have to make some more changes before your code works. See the features deprecated(https://docs.djangoproject.com/en/stable/releases/1.9/#features-deprecated-in-1-9) in 1.9 for details on those additional changes.

Django 2.0 and 2.2 removes the django.core.urlresolvers module, which was moved to django.urls in version 1.10. You should change any import to use django.urls instead, like this:

from django.urls import reverse
Note that Django 2.0 removes some features that previously were in django.core.urlresolvers, so you might have to make some more changes before your code works. See the features deprecated(https://docs.djangoproject.com/en/stable/releases/1.9/#features-deprecated-in-1-9) in 1.9 for details on those additional changes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant