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

Static file error when using in Django 3.0 #148

Open
norrsken-jagare opened this issue Apr 8, 2021 · 1 comment
Open

Static file error when using in Django 3.0 #148

norrsken-jagare opened this issue Apr 8, 2021 · 1 comment

Comments

@norrsken-jagare
Copy link

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:

  • Python 3.9.2 on conda 4.8.3 (Miniforge-pypy3-4.8.3.2) on Linux Kernel 4.4.154-110-rockchip-gcef30e88a9f5, running Ubuntu 18.04.5 on RockPi 4B.

  • Version 0.0.17 of the package referenced in Issue TypeError: metaclass conflict #102

    @Jiangshan00001

    metaclass conflict still happen:

    seems to be working but you will need to install v 0.17 I guess

    pip install -e git+git://github.com/oscarmlage/django-cruds-adminlte/@0.0.17+git.081101d#egg=django-cruds-adminlte
    
@Seykotron
Copy link

Why this version isnt shipped to pip?

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

2 participants