Introduction

logo of django python framework

Bharat Saraswat

Agenda

  • Introduction
  • Features
  • Creating your first django project
  • Models
  • Understanding Admin panel
  • Understanding Django Models
  • Conclusion

Sites using Django

logo of django python framework

Forms

logo of django python framework

User authentication and permissions

logo of django python framework

Caching

logo of django python framework

Administration

logo of django python framework

Serialising data

What does django code look like?

Creating a Django project

$ django-admin startproject mysite

Creating a Django project

mysite/
    manage.py
    mysite/
        __init__.py
        settings.py
        urls.py
        asgi.py
        wsgi.py

Starting development server

$ python manage.py runserver

Models

from django.db import models

class Person(models.Model):
    first_name = models.CharField(max_length=30)
    last_name = models.CharField(max_length=30)
CREATE TABLE myapp_person (
    "id" serial NOT NULL PRIMARY KEY,
    "first_name" varchar(30) NOT NULL,
    "last_name" varchar(30) NOT NULL
);

References:

Thank You

🙏

Bharat Saraswat

bhansa

@293bharat

Introduction to Django

By Bharat Saraswat

Introduction to Django

  • 555