KEMBAR78
Python Django Basics | PPTX
Python Django BootCamp
--Rahil Memon--
Why PYthon ?
Cygnet need Strength in Python.
Back-End
● The Back-End of a site has three components:
○ The Language.
○ The FrameWork.
○ The Database.
Language.
● Technologies such as Php, Node.js, Ruby/Rails, Java,
Python, etc. are all viable options for a website.
● So how do we decide which to choose?
Top 5 Python Questions ?
● What is Python ?
● What can you do with it?
● Why it is so popular ?
● What kind of applications can you build with Python?
● What it does that another programming
language do not ?
Python Can be used for variety of task Such as.
So Python is multi purpose language.
You can solve Many complex program in less time with few
lines of code.
Example
Let's say we want to extract the first 3 letters of Hello
World
Hello World
C#
str.Substring(0 ,3)
JavaScript
str.substr(0 , 3)
Python
str[0:3]
Example
Let's say we want to extract the last 3 letters of Hello
World
Hello World
Python
str[-3:]
See how short and clean language is ?
and that just beginning…..
All of that mean Python is Awesome.
So Python is multi purpose Programing language with simple,
clean and beginner friendly Syntax.
● Though we can develop a app using many other
programming languages so why python ?
● Technically everything you can do python you can do with
other programming languages, but python simplicity and
Community, Ecosystem has made it grow way more than
other programming languages.
Python Has Extended with it’s growing Number of
Libraries.
Django ?
Cygnet need Strength in Django.
Django is the most popular framework
for Python, it’s fast, secure, and
scalable
Django
● Django is a free and open source web
framework.
● It is used by many sites, including Pinterest,
PBS, Instagram, BitBucket, Washington
Times, Mozilla, and more!
Django
Creating our first django project!
Django
● You can install Django with
○ pip install django
Django
● When you install Django, it actually also
installed a command line tool called:
○ django-admin
● Let’s create our first project. Type:
○ django-admin startproject first_project
Django
● Let’s use manage.py now:
○ python manage.py runserver
● You will see a bunch of stuff but at the
bottom you will see something like:
Django version 1.10.5, using settings
'first_project.settings'
Starting development server at
http://127.0.0.1:8000/
Django
● Now let’s learn the process of
creating a view and mapping it
to a URL!
Django
Django - MTV
Learn about the Models-Templates-Views paradigm!
Django
Thank You
--Rahil Memon--

Python Django Basics