Hello,

i'm new to django so excuse if this is  a really stupid question.

I have these three apps with are inter dependable, how can I make this
work in Django maintaining all of this modules separate.

discussion:
from osite.user.models import User
from osite.multimedia.models import Multimedia
class Discussion(models.Model):
     author = models.ForeignKey(User)
...

class Comment(models.Model):
    author = models.ForeignKey(User)
    multimedia = models.ForeignKey(Multimedia)
------------------------------------

user:
from osite.discussion.models import Discussion
class User(models.Model):
     discussion_on_profile = models.ForeignKey(Discussion)
------------------------------------------

multimedia:
from osite.user.models import User
from osite.discussion.models import Discussion


class Multimedia(models.Model):
    author = models.ForeignKey(User)
    discussion = models.ForeignKey(Discussion)
...
class Album(models.Model):
    author = models.ForeignKey(User)
...

With best regards,

Luis


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to