question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ImportError: No module named 'django.core.urlresolvers'

See original GitHub issue

Hi! 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:closed
  • Created 7 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
lumenwritescommented, Feb 21, 2017

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.

1reaction
nikparmarcommented, Feb 21, 2017

I had to go back into the code and update this line with django.conf.urls. Because there are still many compatibility issues

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found