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

Created on 9 Dec 2017  ·  3Comments  ·  Source: vitorfs/bootcamp

In Django version 2.0, the django.core.urlresolvers module has been moved to django.urls. I get the following error:
ImportError: No module named 'django.core.urlresolvers'

Support

Most helpful comment

use this:

from django.urls import reverse

All 3 comments

The project code base is not yet compatible with Django >= 2.0. That would have to wait a little bit. If you already solved that part, it would be great to include your PR fixing this compatibility issue. Don't forget to follow the collaboration guidelines.

use this:

from django.urls import reverse

where would include from django.urls import reverse?
like what file?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

phamminhtris picture phamminhtris  ·  12Comments

ssahilsahil798 picture ssahilsahil798  ·  5Comments

sebastian-code picture sebastian-code  ·  11Comments

Allan-Nava picture Allan-Nava  ·  9Comments

sebastian-code picture sebastian-code  ·  11Comments