3 ms·
Isn't that pretty much exactly what is delivered? Here's the comments app for example: http://docs.djangoproject.com/en/dev/ref/contrib/comments/ http://docs.d
by po 16y ago
Isn't that pretty much exactly what is delivered? Here's the comments app for example:
http://docs.djangoproject.com/en/dev/ref/contrib/comments/ http://docs.djangoproject.com/en/dev/ref/contrib/comments/
For tagging you have a choice between django-tagit and django-tagging. Mingus for example took this to an extreme. Everything was a reusable app. Here's a good article from the developer about it:
http://djangoadvent.com/1.2/everything-i-hate-about-mingus/ http://djangoadvent.com/1.2/everything-i-hate-about-mingus/
http://github.com/montylounge/django-mingus/ http://github.com/montylounge/django-mingus/
The one part of the reusable apps that tends not to get reused are the templates. I find the models, middleware, admin tools, etc… to be a pretty nice way to structure an app.
Moreover, I think it's pretty easy to get caught in a very horizontally structured application because that's how they usually start. You put all of the models in one directory, all of the views in another, etc… I find Django urges you to think about how to slice your application into vertical chunks early on which benefits development.
- mseebach 16y agoApps sure exist. I just found it disheartening that peoples favourite apps, in a framework that, as you mention, encourages re-useable apps as much as Django do, aren't proper apps, but plug-ins and tools.