Closed adamchainz closed 4 years ago
Django 1.10 removes the old-style template configuration in favour of the TEMPLATES
settings. Now you need to either use the django.templates.Engine
API, or explicitly configure a Django templates backend.
Modify tests/__init__.py
and change the settings.configure(...)
line like this
settings.configure(
INSTALLED_APPS=['django_assets', 'django.contrib.staticfiles'],
TEMPLATES=[{'BACKEND': 'django.template.backends.django.DjangoTemplates'}],
)
and you’re good to go.
Fixed in trunk.
I'm trying to upgrade to Django 1.10 and
django-assets
is one of the libraries I have that doesn't advertise support for it. I tried running its tests on top of #86 with the following patch, but got the below failures. Test compatibility here seems to be around the settings used, which need updating to useTEMPLATES
, but also maybe some stuff needs doing inwebassets
too to fix the failures seen in #86?patch:
failures: