How do you make a Django app pluggable? -
For example, say I have a blog app that I want to be able to leave in various projects, but always To be associated with another model of the blog For example, in one case I would like to add it to a user:
site.com/someuser/blog
But on another site I I want him to be associated with it, say, a school:
site.com/someschool/blog
Log app is able to plug that is not necessary to redefine the model (add foreign key) field) would also like when I leave it in a project?
You may want to look in the ContentTap framework. It is used to create a comment app Any model in the database can be used to comment (for various reasons, I did not want to use the standard Django comment app).
Comments
Post a Comment