Does Django store the tables inside the 'models.py' files for each app in the same database?

29 Views Asked by At

Just to make it clearer: suppose I have a Django project that contains multiple apps.

Each one of those apps contains a 'models.py' file.

Each one of those 'models.py' files contains multiple Python classes; each class represents a Python table.

(If I said anything wrong, please correct me).

If what I said above is true, my question is: does Django save ALL of those tables (from multiple apps) in the same database? If yes, can you 'join' data from tables that belong to different apps?

I hope this makes sense. I have just started learning Django and following their official tutorial but I feel it skips a lot of these types of questions and I find myself copying stuff without understand too much how exactly it works so here I am.

0

There are 0 best solutions below