Hi, On 8/1/07, Hai Dong <[EMAIL PROTECTED]> wrote: > > Hello: > > I got a question. What if I have two sites, and each site has several > categories (where articles belong to). For such kind of case what is the > best way of utilizing the site framework.
What about a ForeignKey field in the categories model pointing to a site? Something like: from django.contrib.sites.models import Site class Category(models.Model): .... site = models.ForeignKey(Site) > Thanks, > Harry Kai --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---