Business Logic in Django projects

  1. Models handle data, guarantee integrity, and contain the behaviors that change their state.
  2. Use cases execute the business logic and run the side effects.
  3. Views receive the input, delegate the process, return the output.
  4. Templates deal only with the markup that will be processed by the view.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jair Verçosa

Jair Verçosa

CTO @ Flieber, Mentor @ Latitud, and Tech advisor. Building the next generation of supply-chain automation and helping companies to master the zero to one game!