When trying to save as much time as possible in my development and make as many of my applications as possible as possible, I ran into a small hurdle. On one site, I have a blog application and a news application that is pretty much identical, and it would obviously be easier if I could make one application and expand it where necessary, and then use it as two separate applications with separate databases, etc.
To clarify, consider the following: hypothetically speaking, I would like to have one universal news_content application that contains all the relevant models, views, url structure and templatetags, which I could then include and expand where necessary, as many times as I like, in one project.
It is broken as follows:
news_content/ templatetags/ __init__.py news_content.py __init__.py models.py (defines generic models - news_item, category, etc.) views.py (generic views for news, archiving, etc.) urls.py admin.py
Is there a way to include this application several times in a project under different names? I feel that this should be obvious, and I just don't think about it clearly. Does anyone have any experience with this?
I would be grateful for any advice that people can give. Thanks.
source share