ImportError: No module named 'django.core.urlresolvers'
See original GitHub issueHi! I have just installed this app with:
pip3.5 install django-activity-stream
added it to my INSTALLED_APPS, and added this to urls.py:
('^activity/', actstream.urls),
When I’m trying to run my project, I’m getting an error:
ImportError: No module named 'django.core.urlresolvers'
Am I doing something wrong?
(I’m using Django 2.0, if it matters)
Issue Analytics
- State:
- Created 7 years ago
- Comments:5
Top Results From Across the Web
ImportError: No module named 'django.core.urlresolvers'
Django 2.0 removes the django.core.urlresolvers module, which was moved to django.urls in version 1.10. You should change any import to use ...
Read more >Error No module named django core urlresolvers - Edureka
I am working on Django project where I need to create a form for inputs. I tried to import reverse from django.core.urlresolvers.
Read more >ImportError: No module named django.core.urlresolvers
ImportError : No module named ' django.core.urlresolvers '#urlresolversDjango #Djangoerror #ImportError #motechapp.
Read more >ImportError: No module named \'django.core.urlresolvers\'
Hi I am working on Django project where I need to create a form for inputs. I tried to import reverse from django.core.urlresolvers....
Read more >Django 2.x - No module named 'django.core.urlresolvers' #327
... django.core.urlresolvers import reverse_lazy ImportError: No module named 'django.core.urlresolvers' SOLUTION: Change "django.core.urlr.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Awesome, thank you! The issue was with the file urls.py, which tried to import “patterns” from django.conf.urls, and this is deprecated in django 1.10, so that triggered the input error.
Anyways, apparently this issue was already fixed, I’ve just had an older version of this app installed from pip. Installing the most recent code from github with:
pip3.5 install git+https://github.com/justquick/django-activity-stream.git#egg=actstream
solved the problem.This error is gone now.
I had to go back into the code and update this line with
django.conf.urls
. Because there are still many compatibility issues