Skip to content

Commit

Permalink
Update DJANGO.md
Browse files Browse the repository at this point in the history
  • Loading branch information
countable authored Nov 2, 2024
1 parent 69d83e8 commit 06b4797
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion developers/DJANGO.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,14 @@ Use the long term support version of Django, ideally the latest one available at

## Read 2 Scoops of Django

This book contains a lot of great practices, which we *almost* universally agree with. In particular:
[This](https://mongard.s3.ir-thr-at1.arvanstorage.com/Two%20Scoops%20of%20Django%203.x%20by%20Daniel%20Audrey%20Feldroy%20(z-lib.org).pdf) book contains a lot of great practices, which we *almost* universally agree with. In particular:

- Fat models, skinny views. Put more logic and code in Model methods, if it's relevant to that model specifically. Avoid large amounts of code in views.

## Learn Database Basics

Django's ORM is amazing most of the time. But it's very easy to do the wrong thing. [This](https://thebuild.com/presentations/unbreaking-django.pdf) is a great deck that covers the many caveats of the ORM and how to avoid them, recommended for advanced Django users in particular since it assumes some basic knowledge. If it's too dense, read 2 scoops (above) first.

## Patterns

### Imports
Expand Down

0 comments on commit 06b4797

Please sign in to comment.