I'll be referring to the example in the Django documentation here. I
will extend on the "books" application in the "mysite" project by
creating a new app called "music" so that the structure looks like the
following:
mysite/
books/
models.py - Contains Publisher, Author, Book
music/
models.py - Contains Artist, Album
Let's also assume that the Publisher model from books also publish
music. How can I can refer to Publisher from music/models.py? Is
there a place under mysite where I can have a common models.py used by
all my apps? For example, is mysite/models.py a viable option?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---