0% found this document useful (0 votes)
32 views7 pages

Research 3

This research paper provides a detailed study of Flask as a web development framework and compares it with Django. It outlines the web development process, the features and tools of Flask, and presents a comparative analysis highlighting Flask's flexibility and suitability for single-page applications versus Django's full-stack capabilities. The findings suggest that Flask is a better option for experimental projects due to its modular approach and ease of customization.

Uploaded by

Kapil Kapil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views7 pages

Research 3

This research paper provides a detailed study of Flask as a web development framework and compares it with Django. It outlines the web development process, the features and tools of Flask, and presents a comparative analysis highlighting Flask's flexibility and suitability for single-page applications versus Django's full-stack capabilities. The findings suggest that Flask is a better option for experimental projects due to its modular approach and ease of customization.

Uploaded by

Kapil Kapil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

Web Development using Flask and Comparative Analysis

Vaishali Tanwar
B.Tech Scholar
Department: Artificial Intelligence and Data Science
Arya College of Engineering and I.T Kukas,Jaipur(Pin)
Email: [email protected]

Abstract:
The moto of this research is the detailed study of Flask in Web Development and
doing a comparative analysis of Flask and Django. The theoretical part consists
of the process of web development and involvement of flask framework at the
backend along with the usage of flask.
We are also focusing on the application of Flask, not only this the paper is
dealing with the functioning of flask and creating API using Flask, but it is also
dealing with shallow knowledge about Flask tools and exhibiting the security
feature of Flask which is added in Flask Application.
To do the detailed study of flask working we have implemented it on an
application the application consists of java on the frontend whereas the backend
is associated with the python code and the technology we are using is Machine
Learning

Keywords: Framework, Flask, Backend, Django, API

Introduction:
Web development is the way of building and managing websites through web
tools and different languages (HTML, JavaScript, SQL, etc.). Website
development is generally divided into two parts; It is called the front end where
users interact with the system and make queries, while most of the process and
control messages are called after the query and data. For a website to work, the
frontend and backend work together. This is a difficult task as we need a lot of
tools and a lot of working time to create and develop a website, so for
convenience we mostly use Flask to build the website.
Flask is a website framework written in Python for web development. It is a
production of Armin Ronacher and was aired on April 1, 2010. Custom,
programming etc. It is a group of software libraries and modules that reduce
Flask is often called Microframework; Flask extensions are used to add data
abstractions for data manipulation and authentication support. Applications
currently using Flask include LinkedIn (a social networking application) and
Pinterest.
Method:
The process of developing a website consists of seven steps: -
1. Information Collection
2. Planning
3. Design
4. Content
5. Functionality
6. Testing
7. Update and Modification

 Information collection: Before creating a website, we must collect


information such as target website, target audience, target audience. and
the main purpose.
 Planning: Using the information obtained from the above steps, create a
site map containing the topics needed for our website.
 Design: At this point we are talking about website design to ensure that it is
designed with the target audience in mind.
 Content: Content here refers to the data that the website contains through
which you want to convey the message to the audience.
 Functionality: In this step, we collect all the information collected from the
above steps and start building the website and its functions.
 Testing: When the website development process is completed, the website
needs to be tested, all elements of the website need to be tested and
analyzed.
 Updates and modification: The website should be carefully monitored and
monitored periodically after launch for website administration and future
website maintenance.

Creating websites using flask:


If you want to use flask for website building, start with the python environment
first and install flask by "pip" command to install flask into the system. On the
completion of installation, several packages will be released that show Flask's
dependencies. Now proceeding on, with the help of flask create the website in
the python file using the HTML code so to display the content on the web
browser. To write a code first import the Flask library then create the object for
the flask class, commonly first import the Flask library then create the object,
basically the object is named as “app”. After we write a statement “@app.route()”
it converts the function available in python to the flask viewable form. Then the
HTML code will be implemented inside the python function. This is how our web
application structuring takes place using flask. Save the code with “. Py”
extension, now run the code to do so we use “-m python” command or simply run
the code. As a result, there will be generation of http URL, that URL will be
holding the address of the local server or on gives the URL of a particular server
from where the code is present.
This is how we will create a web application using flask.
From the above explanation it's clear that flask is used to generate API (URLs)
for a particular python code, which is based on the http protocol. The API
generated is consist of the address in the form as, http talks about the protocol
and then there comes domain name continued with the path and at the end there
is the destination point

SET ENVIRONMENT

CREATE APP

RUN APP

API GENERATE

RUN API ON BROWSER

Features of Flask:
Some features of flask are, Flask have in built development server for fast
debugging, it also has integrated support for unit testing, it’s base is Unicode and
uses WSGI and Jinja template, flask is associated with a small code, and it is
easy to customize the code, but the maintenance of the code is expensive.
Tools used in Flask:
Basically, there are two tools that flask used they are, Jinja, WSGI and
Werkzeuge toolkit
Jinja2 template engine: It is a templating engine of python; a web templating
engine combines with the template to render the dynamic web page.
WSGI: WSGI stands for web server gateway interface, it is used to build an
interface between web application and web protocol, also it is used to connect
the web pages in the chain so to make the web application work smoothly
processing the web pages one after another.
Werkzeuge: It is a toolkit that is used to implement the requests, response
objects and other utility functions.
Relative Work:
The implementation of the flask is done over an application in which the crime
related data is analyzed and information regarding the region is displayed, the
program written in the backend part of the application is implemented using the
flask framework, here the framework is used to generate the API of the backend
code, this generated API is merged with the frontend code so it become easy o
access the code of backend, in this project API is generally used to connect
backend and fronted part of the application.
Comparative Analysis:
Flask is not the only framework for the development purpose, there are other
development frameworks too, such as Django, ASP. Net, Cake PHP, Express.js
and Laravel and so on.
There is a comparative analysis between Django and Flask below:
Danjo is a full stack web framework, it uses an object-oriented approach, useful
for multipage application, it uses the most popular database management system
such as MY SQL and Oracle etc. It is less flexible due to its built-in function and
tools; it does not have full control over the modules and function also it has
monolithic style, it supports dynamic HTML pages, it is suitable for high
technology application.
Flask is the lightweight framework with number of features, it uses modular
approach rather than object-oriented approach, it is suitable for single page web
application, it uses SQL Alchemy for the database purpose, it is flexible for
developer, it has diversified style, flask do not support dynamic HTML pages. It is
good for the companies and projects that want to experiment.

Result of Discussion:
After all the discussion we can conclude that although Django is good for high
technology, but it is less flexible also conventional and do not support diversified
style whereas flask is flexible and is diversified apart from that it is good for
experimental module, so flask is better framework than the Django.
References:
https://www.researchgate.net/publication/
280154217_Efficient_Way_Of_Web_Development_Using_Python_And_Flask
https://www.academia.edu/41538217/
Efficient_Way_of_Web_Development_Using_Python_and_Flask
https://www.theseus.fi/bitstream/handle/10024/339796/Ghimire_Devndra.pdf?
sequence=2&isAllowed=y
https://www.cs.cmu.edu/~dga/papers/flask-usenixsec99.pdf
https://coddyschool.com/upload/Flask_Web_Development_Developing.pdf
https://www.ijrra.net/Vol6issue2/IJRRA-06-02-05.pdf
https://careerfoundry.com/en/blog/web-development/what-is-flask/
https://eprints.whiterose.ac.uk/183768/1/development-of-a-digital-twin-
operational-platform-using-python-flask.pdf
https://coddyschool.com/upload/Flask_Web_Development_Developing.pdf
https://www.researchgate.net/publication/
353186521_Why_we_use_Django_rather_than_Flask_in_Asset_Managem
ent_System
https://blog.devgenius.io/web-development-with-flask-or-django-a-
comparative-analysis-9e8edb3bcec4
https://flowygo.com/en/blog/django-vs-flask-python-web-frameworks-
comparison/

You might also like