Python version: 2.7
&
Django version: 1.5.1
I'm currently working on developing a backend app for phpbb3
. Our current implementation in PHP
is eating up far too many resources.
I'm about 90% done, but I am hung up on a small snag when it comes to configuration.
We have multiple forums that the script needs to run on, and each one has its own database, such as site1, site2, and site3 database. Django has its own database as well.
What I need to do is specify settings for my script, based upon each site and the forums on the site. So I need to acquire the forums that exist on site1 and then in the admin panel they can select site 1 and choose a forum and pick their configuration from there. They could then pick site 2, and pick a forum from site 2 and then set their data their.
I do not want to create a django site for each site that we are running, and I would like to make it easy as possible to add a new site, but I am not opposed to making a new app for each site if that is what is needed?
What would be the best method for dynamically pulling the forums from another database and associating it with a site value, and providing configuration models for that forum. (I don't want them to be able to pick a forum that exists on another site)