Python Django
Web Development
BY:Eng Mohamed Ahmed Mohamed
Introducing…Django
 What is a 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.
Django Overview
 Django was 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.
Installation
Preparation
 Download and Install Python 3.4 or any other
 Install pip:
pip install django
 Install virtualenv
pip install virtualenv
What is a in Django
Technical Details for
starting project
 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.
Django MVT Files
Thank You
Question
And
Answers

chapter One Introduction to python django[1].pptx

  • 1.
  • 2.
    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.
  • 4.
    Installation Preparation  Download andInstall Python 3.4 or any other  Install pip: pip install django  Install virtualenv pip install virtualenv
  • 5.
    What is ain Django
  • 6.
    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.
  • 7.
  • 10.