Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check BASE_DIR in django?

I was running into a lot of file not found for webpack in my static folder, and I later realized that for some reason this particular project (which I'm using docker with) keeps trying to check another project folder's static folder for the files I would want. I'm not sure where this could've gone wrong other than the base_dir, but I never changed that setting. There was a while I was going between the projects and trying to run each one (the other project is basically the same thing but not on docker), was that possibly what's confusing the program? How can I solve it?

like image 504
Lucy Gu Avatar asked Nov 27 '25 11:11

Lucy Gu


1 Answers

BASE_DIR is written in settings.py file you can use that by importing it.

like image 165
ROHAN TONGLE Avatar answered Nov 28 '25 23:11

ROHAN TONGLE



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!