Here is my reduced html code:
{% load staticfiles %}
<html lang="en">
<head>
<link href="{% static '/css/buttonform.css' %}" rel="stylesheet">
</head>
</html>
And here is my settings.py:
INSTALLED_APPS = ['django.contrib.staticfiles',]
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(os.path.dirname(BASE_DIR), "static_in_env", "static_root")
STATICFILES_DIRS = (
os.path.join(BASE_DIR, "static_in_pro", "our_static"),
)
The css file exists in the STATICFILES_DIRS but the error comes as: Not Found: /css/buttonform.css
{% static 'css/buttonform.css' %}