mirror of
https://github.com/HackSoftware/Django-Styleguide.git
synced 2025-02-12 01:20:51 +03:00
Add point for where to put services
This commit is contained in:
parent
aebf4511ff
commit
da0e32da5e
|
@ -29,6 +29,7 @@ Expect often updates as we discuss & decide upon different things.
|
|||
|
||||
A service is a simple function that:
|
||||
|
||||
* Live in `your_app/services.py` module
|
||||
* Takes keyword-only arguments
|
||||
* Is type-annotated (even if you are not using `mypy` at the moment)
|
||||
* Does business logic - from simple model creation to complex cross-cutting concerns, to calling external services & tasks.
|
||||
|
|
Loading…
Reference in New Issue
Block a user