I am facing issue while fetching static files in Django. Even I pass correct path where files are stored
For further actions, you may consider blocking this person and/or reporting abuse
I am facing issue while fetching static files in Django. Even I pass correct path where files are stored
For further actions, you may consider blocking this person and/or reporting abuse
Pheak Pheasa -
mohiyaddeen7 -
fast-d3v -
Aditya Pratap Bhuyan -
Top comments (3)
Well, that means something is wrong. Read carefully through the docs. Do you have your
app
inINSTALLED_APPS
? Do you haveAPP_DIRS=True
inTEMPLATES: [{...}]
section of the settings? Usually, you don't need to provide a path there. But you need your templates be in correct dirs. E.g.project_name/app_name/templates
, maybe additionally/app_name
after that. Maybe you're starting your app in production mode in docker but not doingcollectstatic
? So, yeah, recheck everything and it should work. I've been there too: looks like everything is correct but the damn thing is just not working! And in the end it almost always turns out the problem is me/you/developer not paying enough attention. Also, you can join a python slack group here at pyslcakers.com where a lot (~30k) of people can help you with your questions (if you're nice 😉).Hello Constantine,
Thanks For Reply. I will try steps which you mentioned. If still error is occur then I will share my screen and source code to you for review.
I will check and let you know 👍