файл html
{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>{% block title %} {% endblock %}</title>
<link rel = "stylesheet" href="{% static '/css/bootstrap.min.css' %}">
<link rel = "stylesheet" href="{% static '/css/style.css' %}">
<script scr = '{% static 'js/bootstrap.min.js' %}'></script>
</head>
<body class="bg-blue">
<div class="container">
<div сlass="row">
<div class="col-lg-4 col-lg-4">
<br/>
<br/>
<br/>
<div class="panel panel-body">
<div class="panel-body">
<h3 class="text-center text-uppercase"><b>{% block heading %}{% endblock %}</b></h3>
<br/>
{% block content %}{% endblock %}
</div>
</div>
</div>
</div>
</div>
</body>
</html>
файл settings.py
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR,'staticfiles')
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
STATICFILES_DIRS = [
os.path.join(BASE_DIR,'static')
]
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
<b> 'django.contrib.staticfiles',</b>
'TarFoodApp',
'oauth2_provider',
'social_django',
'rest_framework_social_oauth2',
]