Thursday, November 19, 2015

Questions on project vs app, and how they relate

So... if I'm understanding things correctly, a Django 'project' can have
multiple 'apps' in it, and these 'apps' can be reused to some extent
between projects. As in: copy the folder of code for an 'app' from one
project to another (editing things as needed for the new project)?

An app can either have its own style/templates, or it can use the
'project' templates / CSS, correct?

Maybe I haven't came across it yet... but how do you tie the different
apps of a project together? How does the

As an example... lets say I want to set up a web site for running sports
tournaments. One 'app' might be the competitor information, sort of
like a contact / address book. Another might be for setting up specific
events, and another would be for entering the scores and doing various
things with them (validating, enforcing bounds / constraints,
calculating aggregates, breaking ties, publishing results). The
specific functions are distinct enough it seems like they would each be
separate apps, but they all need to access the same database, possibly
the same tables to get the information that one app or another needs.
This seems to be where my (admittedly very basic) understanding of how
Django works pretty much falls apart...

Thanks,

Monte

--
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/n2m6qk%249u3%241%40ger.gmane.org.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment