Update import library to support latest version of Django 2.2#49
Open
AdnanKhan-cmd wants to merge 2 commits intoAlem:masterfrom
Open
Update import library to support latest version of Django 2.2#49AdnanKhan-cmd wants to merge 2 commits intoAlem:masterfrom
AdnanKhan-cmd wants to merge 2 commits intoAlem:masterfrom
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.