Hi Everyone,
I am working on a site, under my project in my local environment, I have a directory called "static" (generated by django just like everyone else's) to server my js and css. I wrote a script which minify all the js and css files and copy them in a directory called "static_min" which is at the same level as "static". When I try to include my css and js files from "static_min", it show url not found.
And I tried the followeing:
in my settings: I changed the STATICFILES_DIRS as the following:
STATIC_ROOT = sys.path[0]
STATICFILES_DIRS = (
os.path.join(STATIC_ROOT, 'static'),
os.path.join(STATIC_ROOT, 'static_min')
)
I thought doing this will make Django to look for file in both static and static_min, but it did not work.
Could someone help.
Thanks
--
⚡ Chen Xu ⚡