-
Notifications
You must be signed in to change notification settings - Fork 0
models
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 onCustomer
Apps are a form of organisation used within trymake.
Copyright (c) 2018 Sidhin S Thomas