Django Error - 'staticfiles' is not a registered tag library. Must be one of: admin_list admin_modify admin_urls

13,298 views
Skip to first unread message

Balaji Shetty

unread,
Dec 10, 2019, 11:00:32 AM12/10/19
to django...@googlegroups.com
Hi

I am getting error for every Project.

I  created new environment and reinstalled python and Django.

emplateSyntaxError at /

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



--
Mr. Shetty Balaji S.
Asst. Professor
Department of Information Technology,
SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India
  Mobile: +91-9270696267

Screenshot from 2019-12-10 21-21-35.png
Screenshot from 2019-12-10 21-21-59.png

Dvs Khamele

unread,
Dec 10, 2019, 11:03:22 AM12/10/19
to django...@googlegroups.com
https://stackoverflow.com/questions/18321684/staticfiles-is-not-a-valid-tag-library-template-library-staticfiles-not-found
See this,

Add these lines,
django.contrib.staticfiles

to INSTALLED_APPS in settings.py


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAECSbOu6bW6G3Wqmz7w3AkezhuGGax9Z4dH7LzEVLAAV5ZtaKQ%40mail.gmail.com.

Andréas Kühne

unread,
Dec 12, 2019, 3:04:59 AM12/12/19
to django...@googlegroups.com
Are you running django 3.0?

If you are you shouldn't use: {% load static from staticfiles %} anymore. You should just write {% load static %}

This broke a couple of things for me as well, but this minor change got it working again.

Regards,

Andréas


Bilim Tr

unread,
Dec 16, 2019, 6:08:39 PM12/16/19
to Django users


10 Aralık 2019 Salı 19:00:32 UTC+3 tarihinde Balaji yazdı:
Screenshot from 2019-12-17 00-27-58.png

Balaji Shetty

unread,
Dec 18, 2019, 9:41:41 AM12/18/19
to django...@googlegroups.com
Thank you very much everyone for help.My problem is solved with version updates.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/14b01579-1a10-463d-b9e4-bded2569cb9a%40googlegroups.com.


--
Mr Shetty Balaji
Asst. Prof.
IT Department
SGGS I&T
Nanded. My. India

Arjun Singh

unread,
Apr 3, 2020, 7:55:45 AM4/3/20
to Django users
Thank You 
For Posting this answer ...I was trying to solve this error whole night but thank you i got solution from YOU.
To unsubscribe from this group and stop receiving emails from it, send an email to django...@googlegroups.com.

rama prakash y

unread,
Apr 18, 2020, 9:38:33 PM4/18/20
to Django users
THANK YOU BROOOOOOO

sahil khan

unread,
Apr 22, 2020, 1:31:16 PM4/22/20
to django...@googlegroups.com
If you have this type of problem plz connect or join our you tube channel 'errormania' and comment whatever your errors problem i will make a video on particular error 


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8f3af48b-9e69-4a60-a83a-16c4703cab21%40googlegroups.com.

mourice otieno Oduor

unread,
Apr 23, 2020, 2:30:18 PM4/23/20
to Django users
1

It's due to upgrading to Django3.0, use as mentioned above.

use:

{% load static %} 
Reply all
Reply to author
Forward
0 new messages