BenjjinF / django-fontawesome-5

A utility for using icons in models, forms, and templates.
BSD 2-Clause "Simplified" License
21 stars 18 forks source link

Configuring with Django 3 #13

Open tagsense opened 4 years ago

tagsense commented 4 years ago

Hello Is fontawesome-5 compatible with Django 3.0.3?

i installed both django-fontawesome-5 and django using pip on a windows 10 machine. i have installed fontawesome using npm as well. i have added fontawesome_5 to INSTALLED_APPS list in settings.py.

but, when i add {% load fontawesome_5 %} to a html file, the Django webserver (i am using Django's built in webserver) fails with the following error message: TemplateSyntaxError at / 'fontawesome_5' is not a registered tag library.

Do I need to install anything else or do i do any other configurations? please advise.

tomcounsell commented 4 years ago

working fine for me using Django==3.0.7 @tagsense try checking that you added {% load fontawesome_5 %} to ALL templates where you use icons (not only parent template)