04-Django Basic

Models in Django

Django Models

  • A Django model is the built-in feature that Django uses to create tables, their fields, and various constraints.
  • Each model class maps to a single table in the database.
  • Django Model is a subclass of django.db.models.Model and each field of the model class represents a database field (column).
[Read More]

HTTP request-response lifecycle

Web Request in Django

1.1 ๐—ช๐—ต๐—ฎ๐˜ ๐—ต๐—ฎ๐—ฝ๐—ฝ๐—ฒ๐—ป๐˜€ ๐˜„๐—ต๐—ฒ๐—ป ๐˜†๐—ผ๐˜‚ ๐˜๐˜†๐—ฝ๐—ฒ ๐—ฎ ๐—จ๐—ฅ๐—Ÿ ๐—ถ๐—ป๐˜๐—ผ ๐˜†๐—ผ๐˜‚๐—ฟ ๐—ฏ๐—ฟ๐—ผ๐˜„๐˜€๐—ฒ๐—ฟ?

The process involves the browser, your computerโ€™s operating system, your internet service provider, the server where you host the site, and services running on that server.

  1. You type url.com in your browser
  2. The browser looks up the IP address for the domain url.com
  3. Then the browser initiate TCP connection with the server
  4. The browser the sends the HTTP request to the server
  5. The server processes the request and sends back a response
  6. The browser then renders the content
[Read More]

Dual Boot Windows and Ubuntu

Install Ubuntu alongside Windows

Guide to Dual Boot Windows and Ubuntu

  • This guide assumes you are installing Ubuntu 18.04 or later (64 bit version)
  • This guide is an overview. It does not cover a lot of corner cases which often come up while doing the process.
  • Also some points might be confusing to the new user.
  • There are reference links to other resources which explain the steps in further detail. I highly recommend reading them.
  • If your Windows is installed in legacy mode i.e. MBR(Master Boot Record) style partitioning, install Linux in legacy mode
  • If your Windows is installed in UEFI mode i.e. GPT style hard disk partitioning, install Linux in UEFI mode
[Read More]