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.0 replaced django.core.urlresolvers with django.urls #7

Closed
jayvdb opened this issue Dec 4, 2017 · 2 comments
Closed

Django 2.0 replaced django.core.urlresolvers with django.urls #7

jayvdb opened this issue Dec 4, 2017 · 2 comments

Comments

@jayvdb
Copy link

jayvdb commented Dec 4, 2017

setup.py & requirements.txtdo not pin the version of Django, and Django 2.0 is out, and Django distill is broken.

  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/django_distill/management/commands/distill-local.py", line 14, in <module>
    from django_distill.renderer import (run_collectstatic, render_to_dir)
  File "/home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages/django_distill/renderer.py", line 17, in <module>
    from django.core.urlresolvers import reverse
ModuleNotFoundError: No module named 'django.core.urlresolvers'

Refer to "django.core.urlresolvers" entry on their deprecation doc.

@meeb
Copy link
Owner

meeb commented Dec 4, 2017

Thanks for the report. This is fixed in the newly published 0.9 release.

@junihoj
Copy link

junihoj commented Oct 8, 2018

Change the django.core.urlresolvers import reverse to django.urls import reverse.

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

3 participants