title: Using font-awesome in python django application
body: <p>I'm trying to load a local copy of font awesome icons in my python django app.</p>
  
  <p>My template base.html contains:</p>
  
  <pre><code>{% load static %}
  &lt;!doctype html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;   
      &lt;meta charset="utf-8"&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"&gt;
      &lt;!-- Bootstrap CSS --&gt;
      &lt;link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous"&gt;
      &lt;link rel="stylesheet" href="{% static 'appointments/css/all.css' %}" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" crossorigin="anonymous"&gt;
      &lt;title&gt;{% block title %}Hello, world!{% endblock %}&lt;/title&gt;
  &lt;/head&gt;
  </code></pre>
  
  <p>as adapted from <a href="https://docs.djangoproject.com/en/2.0/howto/static-files/" rel="noreferrer">https://docs.djangoproject.com/en/2.0/howto/static-files/</a></p>
  
  <p>The directory structure of my app is:</p>
  
  <pre><code>joel@hp:~/myappointments$ tree
  .
  ├── appointments
  │   ├── admin.py
  │   ├── apps.py
  │   ├── __init__.py
  │   ├── migrations
  │   │   ├── __init__.py
  │   ├── models.py
  │   ├── static
  │   │   └── appointments
  │   │       ├── css
  │   │       │   ├── all.css
  │   │       └── webfonts
  │   │           ├── fa-brands-400.eot
  │   │           ├── fa-brands-400.svg
  │   │           ├── fa-brands-400.ttf
  │   │           ├── fa-brands-400.woff
  │   │           ├── fa-brands-400.woff2
  │   │           ├── fa-regular-400.eot
  │   │           ├── fa-regular-400.svg
  │   │           ├── fa-regular-400.ttf
  │   │           ├── fa-regular-400.woff
  │   │           ├── fa-regular-400.woff2
  │   │           ├── fa-solid-900.eot
  │   │           ├── fa-solid-900.svg
  │   │           ├── fa-solid-900.ttf
  │   │           ├── fa-solid-900.woff
  │   │           └── fa-solid-900.woff2
  │   ├── templates
  │   │   └── appointments
  │   │       ├── base.html
  │   │       ├── createappointment.html
  │   │       ├── doctor.html
  │   │       ├── doctors.html
  │   │       ├── home.html
  │   │       ├── index.html
  │   │       ├── navbar.html
  │   │       ├── patient.html
  │   │       └── patients.html
  │   ├── tests.py
  │   ├── urls.py
  │   ├── using shell.txt
  │   └── views.py
  ├── appointments.ipynb
  ├── db.sqlite3
  ├── manage.py
  ├── myappointments
  │   ├── __init__.py
  │   ├── settings.py
  │   ├── urls.py
  │   └── wsgi.py
  </code></pre>
  
  <p>However these icons are not being served. It works if I use the following:</p>
  
  <pre><code>&lt;link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" crossorigin="anonymous"&gt;
  </code></pre>