Font Awesome does not work locally

51 views
Skip to first unread message

Mujab Nasraldeen

unread,
Mar 11, 2019, 11:13:07 AM3/11/19
to Django users
 font awesome does not work locally .. without using: <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">

 I replaced it with: <link rel="stylesheet" href="{% static 'css/fontawesome_all.css' %}">

but when but when i type: <i><span class="fa fa-home"></span></i> .. but the page displays as a square

How to solve this problem???

Joel Mathew

unread,
Mar 11, 2019, 11:15:20 AM3/11/19
to django...@googlegroups.com
It's related to your static address. You're probably not setting the correct relative path. Check the tutorials on how the settings for STATIC files work
Sincerely yours,

 Joel G Mathew



--
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 post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/57773dd9-1a60-4c58-a706-a39959e9e28e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ing.Daniel Bojorge

unread,
Mar 11, 2019, 11:16:29 AM3/11/19
to django...@googlegroups.com
Try to see the console output of your web browser.  There you can see the url where want to load fontawesome_all.css file.


Mi Blog
Nicaragua

"Si ustedes permanecen unidos a mí, y si permanecen fieles a mis enseñanzas, pidan lo que quieran y se les dará.
(Juan 15:7 DHH)
Bendito el varón que se fía en el SEÑOR, y cuya confianza es el SEÑOR.
(Jeremías 17:7 RV2000)



Reply all
Reply to author
Forward
0 new messages