Skip to content

Outdated method #6251

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

Closed
wants to merge 1 commit into from
Closed

Outdated method #6251

wants to merge 1 commit into from

Conversation

xiosec
Copy link

@xiosec xiosec commented Dec 27, 2020

hello
{% load static %} Django documents use this method.
{% load staticfiles %} This method is obsolete.
https://django.readthedocs.io/en/stable/howto/static-files/
https://docs.djangoproject.com/en/3.1/howto/static-files/

Unfortunately, this method does not work in newer versions of Django and causes errors.
The error is as follows:
TemplateSyntaxError at /
'staticfiles' is not a registered tag library

hello
{% load static %} Django documents use this method.
{% load staticfiles %} This method is obsolete.
https://django.readthedocs.io/en/stable/howto/static-files/
https://docs.djangoproject.com/en/3.1/howto/static-files/

Unfortunately, this method does not work in newer versions of Django and causes errors.
The error is as follows:
TemplateSyntaxError at /
'staticfiles' is not a registered tag library
@PRMerger9
Copy link
Contributor

@HSNHK : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@JoshuaPartlow
Copy link
Contributor

JoshuaPartlow commented Mar 22, 2021

Hi @HSNHK - Thanks for submitting a PR. Right now the tutorials are tied to the templates and the templates are using an earlier version of Django. We'll take this into account though when we next refresh the Django content.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants