mirror of
https://github.com/HackSoftware/Django-Styleguide.git
synced 2024-11-22 09:36:36 +03:00
Merge pull request #3 from HackSoftware/cookiecutter-section
Add section about cookiecutter
This commit is contained in:
commit
fa01d87bda
12
README.md
12
README.md
|
@ -47,6 +47,18 @@ Expect often updates as we discuss & decide upon different things.
|
|||
* If the model property spans multiple relations, it should better be a selector.
|
||||
* If a model property, added to some list API, will cause `N + 1` problem that cannot be easily solved with `select_related`, it should better be a selector.
|
||||
|
||||
## Cookie Cutter
|
||||
|
||||
We recommend starting every new project with [`cookiecutter-django`](https://github.com/pydanny/cookiecutter-django)
|
||||
|
||||
Once this is done, depending on the context, remove everything that's not needed.
|
||||
|
||||
The usual list is:
|
||||
|
||||
* `allauth`
|
||||
* templates
|
||||
* Settings for things that are not yet required (always add settings when necessary)
|
||||
|
||||
## Models
|
||||
|
||||
Lets take a look at an example model:
|
||||
|
|
Loading…
Reference in New Issue
Block a user