Thursday, November 19, 2015

Re: Questions on project vs app, and how they relate

Hello Muhammad,

Yes that does help, thank you very much!

I'm still a little unclear on sharing data between the apps. If it was
a standalone SQL database (not using Django or an ORM), I'd think it
would be appropriate to set up one database, with various tables, shared
between all three aspects of the project.

Example: Besides their contact info, competitors would have other info
specific to each person - their classification(s) in various equipment
categories, etc. The EventHandler would need the competitor information
for combining/splitting relays, etc. The Scoreboard would need
information from both, to tie the scores to a specific competitor at a
given event.

The way it looks to me, all the model info (models.py) is particular to
each specific app. How would you get them to all share *one* database
for the project, using the Django ORM?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/n2mb5e%244u2%241%40ger.gmane.org.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment