On 8 jan, 19:33, chiggsy <lazy...@gmail.com> wrote: > A meta question about django: how do people design dango apps?
Like any other. Domain analysis to get the models (database schema, mostly), functional analysis to get the use cases (urls and views), and common sense to fill the gaps. > I understand that the urlconf really is a map of the application, and > that works for me. As for applications, I think that they are pieces > of functionality and i have few problems with that. Well, just everything in a program is a "piece of functionality", so this doesn't mean much. > However: > > when i try to mix and match apps i find ( which is the point of having > apps no? ) Partly. You're not forced into reusing the _whole_ app - you can override and/or extend whole parts of it (templates, urls, views etc - mostly, anything but the models). Most of the times, I have one "project-app" where I override/extend existings "pluggable" apps so they fit my needs. > I tend to create projects that have a mishmash of css/ > javascript libraries. ie I like YUI-grids, whilst someone else likes > blueprint css, I like mookit, while others like jquery especially in > templates... How are other people fighting this problem ? I personnaly avoid any such external dependencies in my own apps - except of course for the "project" app(s) - and don't even try to reuse third-part apps that are too tightly coupled to a specific js or css library - unless they in fact just provide helpers for using one of these libraries that I happen to use in a given project, but then it's a different story. But anyway : the less reusable parts of a pluggable app are the templates - heck, that the very first thing you're going to override for any project. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---