Startertutorials Blog
Tutorials and articles related to programming, computer science, technology and others.
Subscribe to Startertutorials.com's YouTube channel for different tutorial and lecture videos.

Categories: Internet of Things. No Comments on Python and Django for IoT Applications

In this article we will look at the role of Python and Django in developing IoT applications.

 

Djnago is a open source web application framework for developing web applications in Python. Django is based on the well-known Model-Template-View (MTV) architecture and provides a separation of the data model from the business rules and the user interface.

 

Django provides a unified API to a database backend. Web applications built with Django can work with different databases without requiring any code changes. Django consists of an object-relational mapper, a web templating system and a regular expression based URL dispatcher.

 

The roles of model, template, and view in MTV framework are:

Model: It acts as a definition of some stored data and handles the interactions with the database. A Django model is a Python class that outlines the variables and methods for a particular types of data.

 

Template: It is simply an HTML page with a few extra placeholders. Django’s template language can be used to create various forms of text files (XML, email, CSS, JS, CSV, etc).

 

View: The view ties the model to the template. The view is where we write the code that actually generates the web pages. View determines what data is to be displayed, retrieves the data from the database and passes the data to the template.

How useful was this post?

Click on a star to rate it!

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

Suryateja Pericherla

Suryateja Pericherla, at present is a Research Scholar (full-time Ph.D.) in the Dept. of Computer Science & Systems Engineering at Andhra University, Visakhapatnam. Previously worked as an Associate Professor in the Dept. of CSE at Vishnu Institute of Technology, India.

He has 11+ years of teaching experience and is an individual researcher whose research interests are Cloud Computing, Internet of Things, Computer Security, Network Security and Blockchain.

He is a member of professional societies like IEEE, ACM, CSI and ISCA. He published several research papers which are indexed by SCIE, WoS, Scopus, Springer and others.

Leave a Reply

Your email address will not be published. Required fields are marked *