Css not working in Django?

Working with Django 2 but does not work style.css completely. (the type of the code works and the other does not). If the css code to insert in the html file that will run all the code correctly.
Here's how to connect css and settings file
<link rel="stylesheet" type="text/css" href="{% static 'main.css' %}">

STATIC_URL = '/static/'

MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
MEDIA_URL = '/media/'

CRISPY_TEMPLATE_PACK = 'bootstrap4'
March 19th 20 at 08:41
2 answers
March 19th 20 at 08:43
Dump your browser cache
March 19th 20 at 08:45

Find more questions by tags Django