meeb / django-distill

Minimal configuration static site generator for Django
MIT License
441 stars 35 forks source link

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

Closed jayvdb closed 6 years ago

jayvdb commented 6 years ago

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 commented 6 years ago

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

junihoj commented 6 years ago

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