1 -Start by configuring static files storage in settings.py
Start by adding a STATIC_ROOT varible in settings.py
2 – Enable white noise in Settings.py
That’s it – WhiteNoise will now serve your static files. However, to get the best performance you should proceed to step 3 below and enable compression and caching.
Add compression and caching support
Here is the link to look this up directly on the whitenoise website: http://whitenoise.evans.io/en/stable/django.html
Demo source code can be found here: https://github.com/divanov11/django-heroku-whitenoise-static-files