Django static files organization -
i'm working in new app in django , researching best way organize project. @ moment each app independent module system, each 1 have own models, templates, urls, etc.. confuse how set static files.
if create new folder static each app (which option) may have import other apps.
what want keep inside app files app, in special javascript, , keep plugins , frameworks jquery , react.js global usage.
project_name - app - migrations ... - static (just app js) - js - templates - item.html - list.html - project_name - static (global) - plugins - jquery - bootstrap - react - css - sass - js - elements - components - img - __init__.py - manage.py
would idea make this? how best way organize folders?
having done both in numerous projects, find best way put in 1 spot. keep them in top level static folder. way of them in 1 place , (or dev) don't have go searching on project if you're trying find particular file. same principle applies templates. if designer needs access templates work thankful they're not scattered on place. case in above wouldn't apply when you're making portable app.
Comments
Post a Comment