Skip to content

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

Open
AdnanKhan-cmd wants to merge 2 commits intoAlem:masterfrom
AdnanKhan-cmd:master
Open

Update import library to support latest version of Django 2.2#49
AdnanKhan-cmd wants to merge 2 commits intoAlem:masterfrom
AdnanKhan-cmd:master

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