Reputation: 351
I'm currently in the process of learning Django by creating a simple web app that models a toy store. Currently, I have 3 apps in my Django project: Toy
, Details
, and Store
, each with its own model. Toy
and Details
are mutually exclusive, while Store
is composed of a Toy
and Detail
, along with other attributes. Should I consolidate all 3 apps into 1 application, or is there a benefit for having them separated?
Just as a note: I am planning on communicating with Django purely through REST API Calls from the frontend.
Upvotes: 3
Views: 1059
Reputation: 4043
This is mostly opinion-based, there is no right or wrong as long as you understand your project structure. There is a nice discussion here about it.
In terms of pros/cons:
Details
in your project can be used not only for Store?). It might also allow you to publish it as a django-package.INSTALLED_APPS
)Upvotes: 2