I'm trying to deploy an app that I started in django in heroku, but I'm having trouble loading the css / js / imgs files, here's how my folders and settings look!
settings.py
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__))
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static/')
# Extra places for collectstatic to find static files.
STATICFILES_DIRS = (
os.path.join(BASE_DIR, 'static/'),
)
Iloadthecsslikethis:
<linkrel="stylesheet" href="{% static 'bootstrap/css/bootstrap.css' %}"/>
<link rel="stylesheet" href="{% static 'template/style.css' %}" />
<link rel="stylesheet" href="{% static 'fontawesome/css/fontawesome-all.min.css' %}" />
My problem is that I can deploy but I can not load the static files on the page!