Skip to content
Sidhin S Thomas edited this page Jul 24, 2017 · 5 revisions

Models represent the structure of how data is held by the application. Models are used to implement the business logic. That is, we will create functions which make use of models within the model itself.

Models are placed in different Django Apps in sub module trymake.apps.

E.g: for a model Customer -> send_email()

Sending email directly interferes with out model Customer hence it constitutes to our business logic. By defining it within the model we remove any distributed dependency that is, when we need to alter the customer model, all the changes related to functionality can be accessed from the model itself.

Models are present inside Apps in trymake.

In short, an app constitute to several related models. Additionally apps may have several dependencies.

E.g. The app order_management depends on Customer

Apps are a form of organisation used within trymake.

Table of Contents

  1. Commons
  2. Complaints
  3. Coupon
  4. Customer
  5. Delivery
  6. Order Management
  7. Product
  8. Support Staff
  9. User Interactions
  10. Vendor
Clone this wiki locally