🌐
Reddit
reddit.com › r/learnpython › can we make a web app just with python?
r/learnpython on Reddit: Can we make a web app just with python?
May 28, 2022 -

Can we make a website with just HTML and python?

If so, how?

EDIT: Thank you everyone for replying, this is what I learnt from this post:

I can handle the backend with python(with django or flask), but to make a good looking frontend, I would have to use css and javascript, thank you.

🌐
Real Python
realpython.com › python-web-applications
Python Web Applications: Deploy Your Script as a Flask App – Real Python
March 12, 2023 - In this tutorial, you’ll learn how to go from a local Python script to a fully deployed Flask web application that you can share with the world. ... In addition to walking through an example project, you’ll find a number of exercises throughout the tutorial. They’ll give you a chance to solidify what you’re learning through extra practice. You can also download the source code that you’ll use ...
Discussions

Creating a web application using Python
Very basic application can be Python server using templates. For example Flask server with templates for the pages. You can follow tutorial like this https://flask.palletsprojects.com/en/stable/tutorial/ More on reddit.com
🌐 r/Python
40
0
August 17, 2025
Python web application - Stack Overflow
Now a days it is better to use PhusionPassenger Standalone or with NGINX using same technique as PHP by proxy passing it to FastCGI in case of PHP and WSGI for Python. The URL and all explanation for Passenger can be found: Here · All information about Python running on NGINX over FastCGI, uWSGI or Passenger · About frameworks that wrap Python for easier Web development I do recommend Django if it is a larger application ... More on stackoverflow.com
🌐 stackoverflow.com
Using python to develop web application - Stack Overflow
I have been doing some work in python, but that was all for stand alone applications. I'm curious to know whether any offshoot of python supports web development? Would some one also suggest a good More on stackoverflow.com
🌐 stackoverflow.com
Can I create a quality website entirely on python?
For the backend, yes Python is a great choice. For the front-end, there may be options to allow you to write python, but in my opinion it's a bit like trying to hammer in a screw. Maybe it'll work, but the best option is to get the correct tool for the job, which in this case is JavaScript (alongside HTML and CSS of course). Learning your second language may be daunting but will be relatively easy compared to your first as its mainly just changes in syntax now rather than learning how to think programmatically More on reddit.com
🌐 r/Python
71
132
April 18, 2021
🌐
The Hitchhiker's Guide to Python
docs.python-guide.org › scenarios › web
Web Applications & Frameworks — The Hitchhiker's Guide to Python
Flask is a “microframework” for Python, and is an excellent choice for building smaller applications, APIs, and web services. Building an app with Flask is a lot like writing standard Python modules, except some functions have routes attached to them. It’s really beautiful. Rather than aiming to provide everything you could possibly need, Flask implements the most commonly-used core components of a web application framework, like URL routing, request and response objects, and templates.
🌐
Codecademy
codecademy.com › learn › paths › build-python-web-apps-flask
Build Python Web Apps with Flask | Codecademy
In this path, you will learn how to code in Python, design and access databases, create interactive web applications with Flask, and share your apps with the world. ... Learn the basics of Python, one of the world’s most popular and powerful programming languages.
🌐
Python
python.org › about › apps
Applications for Python | Python.org
The Python Package Index lists thousands of third party modules for Python. Python offers many choices for web development: Frameworks such as Django and Pyramid. Micro-frameworks such as Flask and Bottle.
🌐
Microsoft Learn
learn.microsoft.com › en-us › visualstudio › ide › quickstart-python
Create a Python Web App with Visual Studio | Microsoft Learn
Learn how to use Visual Studio and the Flask framework to build a web application in Python, add a code file, and run the app.
Find elsewhere
🌐
Quora
quora.com › What-is-the-fastest-way-to-build-a-web-application-with-Python
What is the fastest way to build a web application with Python? - Quora
So, yes, it’s possible to build a web app using nothing but Python for the server-side programming. But there are mature frameworks like Django that make it easier to do. Many web apps need JavaScript on the browser side, so a web developer needs to know JavaScript and use it with AJAX to interact with Python on the server.
🌐
GeeksforGeeks
geeksforgeeks.org › python › flask-creating-first-simple-application
Flask - Creating First Simple Application - GeeksforGeeks
January 7, 2026 - In this article, we will learn how to build a basic web application using Flask, which is a lightweight Python framework create and run web apps.
🌐
GitHub
github.com › topics › python-web-application
python-web-application · GitHub Topics · GitHub
pandas-dataframe data-visualization matplotlib flask-framework restful-api python-web-application interactive-web-design ... A Simple App built with Python and Flet. 🐍💻 Easy to use and customize.
🌐
DigitalOcean
digitalocean.com › community › tutorials › how-to-make-a-web-application-using-flask-in-python-3
How To Build a Web Application Using Flask in Python 3 | DigitalOcean
April 17, 2020 - Learn how to build a Flask web application from the ground up using Python, covering routes, templates, forms, and deployment.
🌐
Medium
medium.com › @dattu1993 › creating-a-web-application-with-python-a-comprehensive-guide-for-beginners-db59df5867e4
Creating a Web Application with Python: A Comprehensive Guide for Beginners | by Venkata Tumuluri | Medium
March 3, 2024 - Activate your virtual environment ... installed, let’s create a simple web application. Create a new Python file, such as `app.py`, and open it in your favorite text editor....
🌐
BrowserStack
browserstack.com › home › guide › ultimate guide to web development in python
Python Web Development Tutorial | BrowserStack
April 29, 2025 - Web development is the process of building websites and web applications for the Internet. It includes two core components: Front-end development: Focuses on the visual and interactive parts users engage with using HTML, CSS, and JavaScript.
🌐
Microsoft Learn
learn.microsoft.com › en-us › azure › app-service › quickstart-python
Quickstart: Deploy a Python (Django, Flask, or FastAPI) web app to Azure - Azure App Service | Microsoft Learn
Azure CLI has a command az webapp ... your application in a single step. If necessary, log in to Azure using az login. ... Create the webapp and other resources, then deploy your code to Azure using az webapp up. az webapp up --runtime PYTHON:3.14 --sku B1 --logs · The --runtime parameter specifies what version of Python your app is running. This example uses Python ...
Top answer
1 of 9
21

Now that everyone has said Django, I can add my two cents: I would argue that you might learn more by looking at the different components first, before using Django. For web development with Python, you often want 3 components:

  1. Something that takes care of the HTTP stuff (e.g. CherryPy)

  2. A templating language to create your web pages. Mako is very pythonic and works with Cherrpy.

  3. If you get your data from a database, an ORM comes in handy. SQLAlchemy would be an example.

All the links above have good tutorials. For many real-world use-cases, Django will be a better solution than such a stack as it seamlessly integrates this functionality (and more). And if you need a CMS, Django is your best bet short of Zope. Nevertheless, to get a good grasp of what's going on, a stack of loosely coupled programs might be better. Django hides a lot of the details.

2 of 9
4

Edited 3 years later: Don't use mod_python, use mod_wsgi. Flask and Werkzeug are good frameworks too. Needing to know what's going on is useful, but it isn't a requirement. That would be stupid.

Don't lookup Django until you have a good grasp of what Django is doing on your behalf. for you. Write some basic apps using mod_python and it's request object. I just started learning Python for web-development using mod_python and it has been great.

mod_python also uses a dispatcher in site-packages/mod_python/publisher.py. Have a ganders through this to see how requests can be handled in a simple-ish way.

You may need to add a bit of config to your Apache config file to get mod_python up and running but the mod_python site explains it well.

Copy<Directory /path/to/python/files>
     AddHandler mod_python .py
     PythonHandler mod_python.publisher
     PythonDebug On
</Directory>

And you are away!

use (as a stupidly basic example):

Copydef foo(req):
    req.write("Hello World")

in /path/to/python/files/bar.py assuming /path/to is your site root.

And then you can do

Copyhttp://www.mysite.com/python/files/bar/foo

to see "Hello World". Also, something that tripped me up is the dispatcher uses a lame method to work out the content-type, so to force HTML use:

Copyreq.content_type = 'text/html'

Good Luck

After you have a good idea of how Python interacts with mod_python and Apache, then use a framework that does all the boring stuff for you. Up to you though, just my recommendation

🌐
Flask
flask.palletsprojects.com
Welcome to Flask — Flask Documentation (3.1.x)
Welcome to Flask’s documentation. Flask is a lightweight WSGI web application framework.
🌐
Python Forum
python-forum.io › thread-39439.html
Python for web apps - where to start?
Hi, I have some basic programming knowledge (can read syntax, and understand functions and statements) I have never programmed in Python so I'm looking for the right start. My goal is to make web apps with forms that enter data in a database (Mysql),...
🌐
PythonAnywhere
pythonanywhere.com
Host, run, and code Python in the cloud: PythonAnywhere
We have quickstart installers for Django, web2py, Flask, and Bottle — we can also handle any other WSGI web framework that you want to use, and it's probably already installed. Absolutely loving PythonAnywhere — it's been a total game changer for us! We're Python developers building AI apps, and we're using PythonAnywhere to host our Flask API app.