Im fairly new at this and have been all through the previous answers but cant make this work. I am not getting django to read and apply my cart.js file from my base.html template. I have checked and rechecked my settings and files and just cant seem to find it. Can you help?
base.html
static file structure
main urls.py
Error from template rendering
My best guess is it is somewhere in the static files settings but i just cant seem to understand where.
CodePudding user response:
Above script tag add
{% load static %}
Here's the documentation link of handling static files
The issue seems to be in how WhiteNoise is storing and arranging files. Ive tested this through Heroku and everything still seems to be working fine without it although im not sure why.