Chris,

The sites contrib app seems to address your use case.
http://docs.djangoproject.com/en/dev/ref/contrib/sites/

You could just add a foreign key to site in the second app and modify
the manager to only get items for the current site.

class SiteSpecificManager(db.Manager):
  def get_query_set(self):
    return super(SiteSpecificManager,
self).get_query_set().filter(site=Site.objects.get_current())

or something like that. Hope that helps,

Alex

On Jun 10, 3:11 am, chris <[email protected]> wrote:
> Hi there,
>
> I have the following problem:
>
> There is one django site, which consists of two apps, the data for
> these apps are stored in a database.  Some of the models in one app
> access models from the other app.
>
> Now I want to create a new site (on the same server), which contains
> new data for one of the apps, but needs to re-use and extend the data
> from the second app (the first site will also continue to use the data
> in this part).
>
> I realized that Django 1.2.1 supports multiple databases, but I am
> still not sure if this is possible and if yes, how it can be done.
> Any help appreciated.
>
> Chris

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to