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

Django 2.x - No module named 'django.core.urlresolvers' #327

Open
juanmitaboada opened this issue Dec 12, 2017 · 5 comments
Open

Django 2.x - No module named 'django.core.urlresolvers' #327

juanmitaboada opened this issue Dec 12, 2017 · 5 comments

Comments

@juanmitaboada
Copy link

File "/home/www.django/incoan/env/lib/python3.5/site-packages/djng/forms/fields.py", line 13, in
from django.core.urlresolvers import reverse_lazy
ImportError: No module named 'django.core.urlresolvers'

SOLUTION: Change "django.core.urlresolvers" to "django.urls"

@diogosimao
Copy link

It's the only change that must be done in order to get things working with Django 2.0, isn't it?

@JLashmar
Copy link

No, you also have to change core/urlresolvers.py as well, after that it worked okay for me

@HelloMukama
Copy link

use from django.urls import reverse

@pramod870
Copy link

I also used from django.urls import reverse but still got error

@abhinav7879
Copy link

i also used django.urls but still getting error

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

No branches or pull requests

6 participants