0% found this document useful (0 votes)
13 views6 pages

Django

Django basic concept

Uploaded by

asifameerhamza11
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views6 pages

Django

Django basic concept

Uploaded by

asifameerhamza11
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Week # 01

Slides 4
What is Backend Development?

Definition: Backend development refers to the server-side development of web applications.

Key Responsibilities:

◦ Handling databases and server logic ◦

Managing APIs and server configurations ◦

Ensuring security and data integrity

Technologies Involved: Python, Java, PHP, Ruby, etc

Slides 6 7 8
Introduction to Django Framework

What is Django?

◦ A high-level Python web framework that encourages rapid development.

◦ Designed to help developers build secure and maintainable websites.

Why Django? ◦

"Batteries-included" philosophy with built-in features ◦ Scalable and secure ◦ Extensive community
support

SLIDES 7

Key Features of Django

Object-Relational Mapping (ORM):

A powerful database abstraction API

Automatic Admin Interface: Built-in administrative interface for easy data management

Templating System: A versatile template engine for generating HTML dynamically

URL Routing: Flexible URL dispatcher based on regular expressions


Security Features: CSRF protection, SQL injection prevention, and more

SLIDES 8

Django Architecture Overview

MVC Pattern in Django:

◦ Model: Represents the data or business logic ◦

View: Controls what users see (presentation layer) ◦

Template: Contains static parts of the desired HTML output as well as some special syntax describing
how dynamic content will be inserted

◦ Controller (URLs and Views): Handles user input and interaction, mapped via URL

WEEK 3

SLIDES 6

Model Fields Explained

•Common Field Types:

•CharField: Short text

•TextField: Longer text

•IntegerField: Integer values

•DateField: Date values

•Options: •null, blank, default, choice


SLIDES 8

Creating Database Migrations


Creating Migrations

Python manage.py makemigrations

Applying Migrations

Python manage.py migrate

Check Migration Status: You can check the applied migrations using THIS

Python manage.py showmigrations

Lecture number 4

Slides 4 and 5:
Lecture 7

Slides 1 , 8 and 10:

You might also like