Django 1.10 using runserver in development
For some reason, no files can be found in my static directory unless I have it listed as such:
STATIC_URL = 'static/'
if not os.environ.get('DEPLOYED'):
STATIC_ROOT = os.path.join(BASE_DIR, "static/")
But all documentation and everything I have done before says it should be /static/ which makes me think I'm doing something wrong elsewhere. I am using Django's runserver
URLS:
if settings.DEBUG:
from django.conf.urls.static import static
from django.contrib.staticfiles import views
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
I get to the site now by typing localhost:8000/static/index.html