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
Den tis 10 dec. 2019 kl 16:59 skrev Balaji Shetty <balajishetty@gmail.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.IndiaOfficial: bsshetty@sggs.ac.inMobile: +91-9270696267
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/CAECSbOu6bW6G3Wqmz7w3AkezhuGGax9Z4dH7LzEVLAAV5ZtaKQ%40mail.gmail.com.
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/CAK4qSCfmFf5LOZOXMo0mTyM6SinWGqAzAyTbRfXuvhtLT6HRqQ%40mail.gmail.com.
No comments:
Post a Comment