Python Web Application
Framework
18118_Sahil_singh
• It is a collection of package or
modules that allow developers to
write Web applications or services.
• With it, developer don’t need to
handle low- level details like
protocols , sockets or process/thread
management.
What is Python
Web Application
Framework ?
Django
• Django is a open source web
application framework for developing
web applications in python.
• It follows the Model-View-
Controller(MVC) architectural pattern
and provides a wide range of features
for handling tasks like URL routing ,
database modelling, and form
handling.
• It encourages clean and paragmatic
design , making it a popular choice for
web developers.
Django Architecture
Django is a Model-View-Template (MVT).
• Model(M):- Model is the structure of storing the data in the
database.
• View(V):- The View ties the model to the template. The Vies
is where you write the code that actually generates the web
pages.
• Template(T):- The Template is simply an HTML page.
Django’s template language can be used to create various
forms of text files (XML,email,CSS,Javascript,CSV,etc)
Creating a Django Project and App
• The Commands for creating a Django project and an application within a project.
* When you create a new Django project a number of files are created as
described below :
 _init_.py : This files tells Python that this folder is a Python package.
 manage.py : This file contains an array of functions for managing the site.
 settings.py : This file contains the website’s settings.
 urls.py : This file contains the URL pattern that map URLs to pages.
* When a new application is created a new directory for the application is also
created which has a number of files including :
 model.py : This file contains the description of the models for the application.
 views.py : This file contains the application views.
Thank You

Sahil_18118_IOT-ppt.pptx

  • 1.
  • 2.
    • It isa collection of package or modules that allow developers to write Web applications or services. • With it, developer don’t need to handle low- level details like protocols , sockets or process/thread management. What is Python Web Application Framework ?
  • 4.
    Django • Django isa open source web application framework for developing web applications in python. • It follows the Model-View- Controller(MVC) architectural pattern and provides a wide range of features for handling tasks like URL routing , database modelling, and form handling. • It encourages clean and paragmatic design , making it a popular choice for web developers.
  • 6.
  • 7.
    Django is aModel-View-Template (MVT). • Model(M):- Model is the structure of storing the data in the database. • View(V):- The View ties the model to the template. The Vies is where you write the code that actually generates the web pages. • Template(T):- The Template is simply an HTML page. Django’s template language can be used to create various forms of text files (XML,email,CSS,Javascript,CSV,etc)
  • 8.
    Creating a DjangoProject and App • The Commands for creating a Django project and an application within a project. * When you create a new Django project a number of files are created as described below :  _init_.py : This files tells Python that this folder is a Python package.  manage.py : This file contains an array of functions for managing the site.  settings.py : This file contains the website’s settings.  urls.py : This file contains the URL pattern that map URLs to pages. * When a new application is created a new directory for the application is also created which has a number of files including :  model.py : This file contains the description of the models for the application.  views.py : This file contains the application views.
  • 10.