Say for example I have a Blog app that I want to be able to drop into different projects, but I always want the Blog to be associated with some other model. For example, in one case I may want it to be associated with a user:
site.com/someuser/blog
But on another site I want it to be associated with, say, a school:
site.com/someschool/blog
Is there a way to make the Blog app pluggable so that it’s not necessary to redefine the model (adding a foreign key field) whenever I drop it into a project?
You might want to look into the ContentTypes framework, I used it to create a comment app that can be used for commenting any model in the database (for different reasons, I didn’t want to use the standard django comment app).
http://docs.djangoproject.com/en/dev/ref/contrib/contenttypes/