Search code examples
djangodjango-modelsdjango-apps

Using django models across apps?


So in my Django project I have a few different apps, each with their own Models, Views, Templates, etc. What is a good way (the "Django" way) to have these Apps communicate?

A specific example would be a Meetings App which has a model for Meetings, and I have a Home App in which I want to display top 5 Meetings on the home page.

Should the Home App's View just query the Meetings App's Model?

It feels like that is crossing some line and there might be a more de-coupled way to do things like this in Django.


Solution

  • At some point your apps will have to couple in order to get any work done. You can't get around that.