Understanding Exit Codes in Bash
git rebase | Atlassian Git Tutorial
Why isn't admin.autodiscover() called automatically in Django when using the admin, why was it designed to be called explicitly?
Why You Never Finish Your Side Projects
From the django community on Reddit
How do I extend the Django Group model?
How to Extend User and Session in NextAuth.js (Typescript) | ReactHustle
how to update the type of session in session callback in Next-auth when using Typescript
How to execute a Bash command only if a Docker container with a given name does not exist?
Environment variables precedence in Docker Compose
What is the point of WORKDIR on Dockerfile?
The best Docker base image for your Python application (June 2023)
How to pass arguments within docker-compose?
What is the rationale for the `/usr` directory?
How to Setup Headless Dev Environment with Django and Docker
Django admin -- restricting access by user
Dockerize Your Django Apps. From local development to production | by Mariano Martinez Grasso | Better Programming
GitKraken Client Release Notes
How to configure social authentication in a Next.js + Next-Auth + Django Rest Framework application
Add auth support to a Next.js app with a custom backend
JUAN GRIMM – 1 MILHÃO EM 18 MESES COM SAAS | UPINSIDE CAST • EP07
1. How to add additional actions in Django admin? — Django Admin Cookbook 2.0 documentation
Django Tutorial Part 5: Creating our home page - Learn web development | MDN
Automatically Register All Models In Django Admin — Django Tips
We can create a new admin class which will subclass ListAdminMixin & ModelAdmin
Allow middleware matcher to match route group · vercel next.js · Discussion #44635
Introducing Toolpad: MUI's low-code admin builder - MUI
Django models and encapsulation - DabApps
Beyond "Fat models, thin views"
Never write to a model field or call save() directly. Always use model methods and manager methods for state changing operations.This is a simple, unambiguous convention, that's easily enforceable at the point of code review.
This isn't about writing boilerplate setter properties for each field in the model, but rather about writing methods that encapsulate the point of interaction with the database layer. View code can still inspect any field on the model and perform logic based on that, but it should not modify that data directly.
Enforcing the "Never write to a model field or call save() directly." rule is particularly valuable when it comes to enforcing application data integrity between multiple model instances.
When using ModelForm you cannot use model manager .create() methods to encapsulate instance creation because the validation process requires the object to be instantiated and saved as separate steps. Calling .is_valid() instantiates the object directly, and makes it available as form.object. This object is then saved and persisted when form.save() is called.
The only place in your code where you might legitimately choose to break the contact is during test setup.
Never write to a model field or call save() directly. Always use model methods and manager methods for state changing operations.
Python interfaces a la Golang | Tech blog | Kraken Tech
Let’s focus on the concept of protocol in python. This not something new, you
might know that calling len() in any object that contains the method __len__
will just work;
The whole concept of dependency injection in Go revolves around the idea of having interfaces as a contract. Your python object or your Go struct needs
to fulfill this contract in order to be used as a parameter to a function.
Using Django Check Constraints to Ensure Only One Field Is Set - Adam Johnson
HackSoftware/Django-Styleguide: Django styleguide used in HackSoft projects