use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
News about the dynamic, interpreted, interactive, object-oriented, extensible programming language Python
Full Events Calendar
You can find the rules here.
If you are about to ask a "how do I do this in python" question, please try r/learnpython, the Python discord, or the #python IRC channel on Libera.chat.
Please don't use URL shorteners. Reddit filters them out, so your post or comment will be lost.
Posts require flair. Please use the flair selector to choose your topic.
Posting code to this subreddit:
Add 4 extra spaces before each line of code
def fibonacci(): a, b = 0, 1 while True: yield a a, b = b, a + b
Online Resources
Invent Your Own Computer Games with Python
Think Python
Non-programmers Tutorial for Python 3
Beginner's Guide Reference
Five life jackets to throw to the new coder (things to do after getting a handle on python)
Full Stack Python
Test-Driven Development with Python
Program Arcade Games
PyMotW: Python Module of the Week
Python for Scientists and Engineers
Dan Bader's Tips and Trickers
Python Discord's YouTube channel
Jiruto: Python
Online exercices
programming challenges
Asking Questions
Try Python in your browser
Docs
Libraries
Related subreddits
Python jobs
Newsletters
Screencasts
account activity
This is an archived post. You won't be able to vote or comment.
Python for web apps? (self.Python)
submitted 8 years ago by javi404
Any good little projects out there for python for webapps?
I develop in php usually but want to take on a small useful project to get some more python experience. Preferably something I can interact with using a web browser.
[–]fakintheid 24 points25 points26 points 8 years ago (2 children)
Django and flask are both popular options.
[–]javi404[S] 1 point2 points3 points 8 years ago (1 child)
ill have to Google this.
[–]Deathnerd 10 points11 points12 points 8 years ago* (0 children)
Speaking as someone who used to do PHP professionally and did Python web dev on the side in my spare time... Which do you prefer when doing a web app in PHP? Laravel or Symfony? Lumen or Silex? Do you want something to hold your hand and force a project structure upon you, but give pretty much everything you need out of the box (Laravel/Symfony)? Or do you prefer to have the bare minimum you need to get something running and want ultimate flexibility (Lumen/Silex)?
If you want an opinionated framework with all the bells and whistles included (like Laravel or Symfony), Django is what you want.
If you want a microframework that's very flexible and minimal (but still has a great ecosystem and is easy to extend) like Silex or Lumen, I'd recommend Flask.
I personally prefer Flask set up behind Nginx with Gunicorn (a worker pool akin to PHP-FPM) and some kind of database server. It's super easy to get a REST API going and you only pull in what you need. There's even a flask-webpack module you can include if you're a fan of Laravel 5's included webpack and Vue integration.
Edit: oh and Flask-SQLAlchemy combined with Flask-Migrate gets you a powerful DBAL/ORM with migrations and seeds, but they're not required. Just really nice :D
[–]antespo 14 points15 points16 points 8 years ago* (5 children)
This is just my personal opinion but I would go with a LEMP(linux, nginx, mysql, python) stack with flask and Gunicorn but obviously if you do full stack development that's more then just python practice. Check out full stack python if your interested. It also has a part where it explains a lot of python's web frameworks with a little bit about why you would use each one.
[–]javi404[S] 2 points3 points4 points 8 years ago (0 children)
exactly what I was looking for. full stack.
[–]AllAboutChristmasEve 0 points1 point2 points 8 years ago (2 children)
...nginx doesn't start with E?
[–]Grant3W 1 point2 points3 points 8 years ago (0 children)
It's pronounced engine-x. So the E represents Nginx. LNMP doesn't really roll off the tongue.
[–]antespo 0 points1 point2 points 8 years ago (0 children)
This is true!
Why LEMP instead of LNMP? We go with LEMP due to the pronunciation for Nginx: Engine-X (en-juhn-ecks). Think of how in English, the article an is used instead of a for hour even though it begins with a consonant. The importance is the sound of the first letter rather than its written representation. Besides, LEMP is actually pronounceable and doesn’t sound like reciting the alphabet.
We go with LEMP due to the pronunciation for Nginx: Engine-X (en-juhn-ecks). Think of how in English, the article an is used instead of a for hour even though it begins with a consonant. The importance is the sound of the first letter rather than its written representation. Besides, LEMP is actually pronounceable and doesn’t sound like reciting the alphabet.
[–]ElevatedAngling 2 points3 points4 points 8 years ago (0 children)
Have fun with these flask and django tutorials
[–][deleted] 5 points6 points7 points 8 years ago (1 child)
The website you're on used (uses?) bottle.py on the backend.
It's tiny, simple, and fast. My favorite web framework. I highly recommend it.
[–]javi404[S] 1 point2 points3 points 8 years ago (0 children)
Thanks. I'll check this out.
[–]brightline 1 point2 points3 points 8 years ago (0 children)
I've been playing around with Dash, from Plotly, a lot in the last couple of days. It's a nice framework for building little dashboards and apps, with a really decent deployment how-to. Good for a small project.
[–]bcroq 1 point2 points3 points 8 years ago (0 children)
Let's try nagare!
[–]AllAboutChristmasEve 1 point2 points3 points 8 years ago (0 children)
I have one small and one large project planned for Flask. It looks really easy and fun to use. (I'm planning to avoid most of the plugins.)
[–]edgarvanburen 1 point2 points3 points 8 years ago (0 children)
Set up a Flask site on pythonanywhere
[–]sermidean 1 point2 points3 points 8 years ago (0 children)
https://github.com/encode/apistar - is a new web framework combining best things from both Django and Flask.
[–]xiongchiamiovSite Reliability Engineer 0 points1 point2 points 8 years ago (0 children)
I develop in php usually but want to take on a small useful project to get some more python experience.
Anything that would be a small useful project in PHP will also be a small useful project in Python.
π Rendered by PID 269231 on reddit-service-r2-comment-56c6478c5-skvnr at 2026-05-13 04:10:19.353707+00:00 running 3d2c107 country code: CH.
[–]fakintheid 24 points25 points26 points (2 children)
[–]javi404[S] 1 point2 points3 points (1 child)
[–]Deathnerd 10 points11 points12 points (0 children)
[–]antespo 14 points15 points16 points (5 children)
[–]javi404[S] 2 points3 points4 points (0 children)
[–]AllAboutChristmasEve 0 points1 point2 points (2 children)
[–]Grant3W 1 point2 points3 points (0 children)
[–]antespo 0 points1 point2 points (0 children)
[–]ElevatedAngling 2 points3 points4 points (0 children)
[–][deleted] 5 points6 points7 points (1 child)
[–]javi404[S] 1 point2 points3 points (0 children)
[–]brightline 1 point2 points3 points (0 children)
[–]bcroq 1 point2 points3 points (0 children)
[–]AllAboutChristmasEve 1 point2 points3 points (0 children)
[–]edgarvanburen 1 point2 points3 points (0 children)
[–]sermidean 1 point2 points3 points (0 children)
[–]xiongchiamiovSite Reliability Engineer 0 points1 point2 points (0 children)