Introducing…Django
What isa Python Django?
A high-level Web framework is software that eases the pain of
building dynamic Web sites. It abstracts common problems of
Web
development and provides shortcuts for frequent programming
tasks..
Flexible template language that can be used to generate HTML,
or any other format
Includes ORM that supports many databases – Postgresql,
MySQL, Oracle, SQLite
Lots of extras included –sessions, caching, authentication.
3.
Django Overview
Djangowas started in 2003, released under BSD in 2005, and the
Django Software Foundation was established in 2008.
Object Relational Mapper engine that handles MVC
Models (M) = relational database schema (models.py)
Views (V)= http request and web template system (views.py)
Controller (C)= Regex URL dispatcher (urls.py): isku-xidhka MV-ga
Django Packages - Allows for third party components to be added
(as extra) available through pip:cmd-da ayaa lagu qoraa sida, pip
install pillow, pip intall Django-low, pip install Django-filter
CSRF (cross site request forgery), built in authentication, strong
password storage, admin portal, and other out of the box
features.
Technical Details for
startingproject
Create project folder in your computer
Open your cmd and write these commands
Django-admin startproject NTU
Cd NTU
Python manage.py runserver. See the ip address
billow and write to your browser.
Python manage.py startapp NTUH. To start an
application in the project NTU.