miracle2k / django-assets

Django webassets integration.
BSD 2-Clause "Simplified" License
89 stars 79 forks source link

ImportError cannot import name app_template_dirs in Django 1.8.x #63

Closed chaupt closed 8 years ago

chaupt commented 8 years ago

Using the current django-assets release in master (0.11), when running ./manage.py assets build --parse-templates, we get a crash that leads to the trace that concludes with:

  File "/go/src/github.com/opsmatic/admini-future/.virtualenv/local/lib/python2.7/site-packages/django_assets/loaders.py", line 63, in get_django_template_dirs
    from django.template.loaders.app_directories import app_template_dirs
ImportError: cannot import name app_template_dirs

Indeed, app_template_dirs is MIA in 1.8 (testing with 1.8.5 and newer).

I've got a PR I'll submit with a super simple patch that got us going again.