First
because I found the default mechanism prone to generate mess in your files system.
If you have a template\something\index.html linked with a static\something
when one day you will want to delete you something you have have to delete it from your code from template\something\index.html and most probably you will not deleted static\something because you forgot or other page rely on it.. so it' start to generate garabage.
instated if everything related to template\something\index.html is in the same path and sub folder. once you delete the main folder all the childs are gone in the same moment. So way easier to keep organized and avoid garbage.
I created a folder junction from template\about\static to static\about :) so (in Windows) if I deleted template\about\ it will deleted also the junction inside the \static :D
I have to admit I asked my question there also but WTF !? I'll open another topic for that.
So just to give a big to python-forum.io who is way more human !and where we can solve, express our ideas ! Big thanks !
big thank you
to Snippsat for your last reply how can do the trick ! (if found another way that I will share with below.) (Aug-25-2020, 06:00 AM)ndc85430 Wrote: Why would you put static files in the same directory as your templates?
Why do you want to avoid using the static directory as suggested?
Indeed good question.because I found the default mechanism prone to generate mess in your files system.
If you have a template\something\index.html linked with a static\something
when one day you will want to delete you something you have have to delete it from your code from template\something\index.html and most probably you will not deleted static\something because you forgot or other page rely on it.. so it' start to generate garabage.
instated if everything related to template\something\index.html is in the same path and sub folder. once you delete the main folder all the childs are gone in the same moment. So way easier to keep organized and avoid garbage.
My solution
I created a folder junction from template\about\static to static\about :) so (in Windows) if I deleted template\about\ it will deleted also the junction inside the \static :D
stackoverflow not helpful
I have to admit I asked my question there also but WTF !? I'll open another topic for that.
So just to give a big to python-forum.io who is way more human !and where we can solve, express our ideas ! Big thanks !