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

2015-11-20 Thread memilanuk
Outstanding, that made things a lot clearer! Now I just have to work thru it in actual practice. Always seems to be the tricky part ;) Thanks, Monte -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop rec

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

2015-11-19 Thread Muhammad M
Hi Monte, You can use a model from one app in another app. So, let's say that in competitors/models.py (where you define the models for your "competitors" app), you have a model class named Participant. This model represents, well, a participant in the tournament. It is likely, as you stated, tha

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

2015-11-19 Thread memilanuk
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 aspe

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

2015-11-19 Thread Muhammad M
Dear Monte, Don't consider me an expert but here is how you may want to handle this scenario. 1. django-admin.py startproject tournaments Now, cd into the 'tournaments' directory (wherein you have a manage.py file). From that directory you can create as many different apps (actually "components"

Questions on project vs app, and how they relate

2015-11-19 Thread memilanuk
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 ei