oscarmlage / django-cruds-adminlte

django-cruds is simple drop-in django app that creates CRUD for faster prototyping
BSD 3-Clause "New" or "Revised" License
425 stars 81 forks source link

Static file error when using in Django 3.0 #148

Open norrsken-jagare opened 3 years ago

norrsken-jagare commented 3 years ago

After setting up the package in my Django project, I have encountered the following error:

Error during template rendering
In template <project-directory>/src/django-cruds-adminlte/cruds_adminlte/templates/cruds/base.html, error at line 5

'staticfiles' is not a registered tag library. Must be one of: admin_list admin_modify admin_urls adminlte_helpers cache crud_tags i18n l10n log static tz

Looking up the error on Stack Overflow (https://stackoverflow.com/questions/55929472/django-templatesyntaxerror-staticfiles-is-not-a-registered-tag-library) it seems that this was caused by an obsolete tag in the template files.

The tag {% load staticfiles %} has to be replaced by {% load static %} which was already deprecated in Django 2.1.

I am using:

Seykotron commented 2 years ago

Why this version isnt shipped to pip?