Subscribe to my newsletter and never miss my upcoming articles
Installing python First of all, Python is required. Python is high level, interpreted general purpose programming language. Install Python on your system from Official Python Download We will not cover in depth about python in this series, but let ...
Django under the hood provides an app called Admin a.k.a Django Admin, which provides Admin UI interface/web page for your Django Project. This admin interface can automatically generate CRUD views/ (form/tables) for your models with very minimal set...
Model Field Validation To validate a model field on application level we can create up a validator which is a callable that take the value to be validated and raises error (ValidationError to be precise) if the value doesn't meet the criteria or it i...
Model Manager A Manager is the interface through which we perform ORMs in Django models By Default, Django automatically adds a Manager with a name of objects. This is the reason we are able to use objects and query to our Models eg: Model.objects.a...
Table relationships in Relational Database design 1. One to One relationship (1-1) A relation is said to be 1-1 if a row in Table A can have only one matching row in Table B Let's take an example of simple 1-1 relationship between user and user_det...
A custom pagination to return empty data when limit=0