
I'm currently trying to get the styles to load for my index page and am not having any luck. The above illustrates my current file structure. DEBUG = True and I have run collectstatic to no avail. I'm assuming it's all a basic directory mapping issue, but can't seem to figure it out. Thanks in advance.
settings
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
URLS
from django.conf.urls import include, url
from django.contrib import admin
from homepage.views import main_page
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
url(r'^$', main_page, name = 'home'),
url(r'^admin/', include(admin.site.urls)),
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
html snippet
{% load staticfiles %}
<link href="{% static 'css/style.css' %}" rel="stylesheet">
<link href="{% static 'css/font-awesome.min.css' %}" rel="stylesheet">
<link href="{% static 'css/bootstrap.css' %}" rel="stylesheet">
ERROR
'static/css/bootstrap.css' could not be found
static/static/css/bootstrap.cssin your folder structure, no?STATIC_ROOT = os.path.join(BASE_DIR, 'static/static')