For the third-party (jquery) code in my Django project, I adopted a directory structure for my static files, which put all the third-party files in a separate lib subdirectory. In particular, this is what my directory tree looks like now:
myproject/ myproject/ static/ css/ my-own-stylesheet.css lib/ bobs-stylesheet.css joes-stylesheet.css img/ my-own-image.png lib/ bobs-image.png joes-image.png js/ my-own-javascript.js lib/ bobs-javascript.js joes-javascript.js
This is intended to accomplish two things: 1. Separating my own assets from third-party assets. 2. Separation of css, img and js files.
Of course, as long as all the paths are correct, this works fine, but is there any agreement at all for posting third-party material in Django projects?
I also reviewed
myproject/ myproject/ static/ css/ img/ js/ lib/ bob/ css/ img/ js/ joe/ css/ img/ js/
I wonder if I can overdo it, but does he have a βbest practiceβ?
source share