Django is an open-source python-based web framework that helps to build web applications. With 4+ years of experience in the Django framework, I have listed down some of the best Django practices. Best practices are for intermediate or professional developers. Don’t get intimidated/overwhelmed if you are a beginner.

8m read timeFrom medium.com
Post cover image
Table of contents
11 Django best practices that will make you PROWhat is Django?DisclaimerRemember “Fat models, skinny views” conceptDo not use ForeignKey with unique=TrueNull BooleanFieldUse .first() instead of .get()Avoid redundancy in ModelsKeep Attributes and Methods Order in a ModelUsing a Virtual EnvironmentCreate a good SitemapsMake better use of appsKeep production settings separate from developmentUse in-built Class-based views rather than creating a messLastly...
3 Comments

Sort: