django 2.0.3 and Python 3.6.x FireFox, Chrome, Safari
I'm not sure that this is a django issue as this is something I've never seen happen. I am hoping someone has seen this before or knows what I am doing wrong.
My browser will not find my static files with runserver. What is strange is that the urls within the templates are correct and if I paste the urls into the browser, the files are found.
If I run
./manage.py findstatic --verbosity 2 css/style.css
The files are found. Yet the browser, Firefox, Chrome, Safari (all latest versions) both show a 404 in the WebConsoles of the pages where I access the static resources.
<link rel="stylesheet" href="{% static 'trans/css/style.css?1510690221335' %}">
Does not work. If I change to the actual URL
<link rel="stylesheet" href="http://localhost:8080/trans/css/style.css?1510690221335">
Things work fine.
My relevant (As best I can tell) configuration is
STATIC_ROOT = str(ROOT_DIR('staticfiles'))
STATIC_URL = '/static/'
STATICFILES_DIRS = [
str(APPS_DIR.path('static')),
]
/#staticfiles-finders
STATICFILES_FINDERS = [
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
]
I also added
static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
to my urls.py
All permissions on my static
folder and sub folders are correct. Has anyone seen this before and know of a resolution? Thank you.