Re: Is Django still good to build mordern web apps/sites or is FastAPI the preferred choice for Python
Mats Wichmann <[email protected]> Sun, 6 Jul 2025 15:21:38 -0600
| Newsgroups | gmane.comp.python.tutor |
|---|---|
| Message-ID | <[email protected]> |
On 7/6/25 13:42, Matthew Ngaha via Tutor wrote: > I just recently got back into programming (hobby) and wanted to try > and build a website. Django seems to have been around for so long that > I'm just wondering if it's still a solid choice for websites/apps > using Python. Or is FastAPI a better option? I'm somewhat familiar > with Django and how it works, i.e forms, views, models etc but it's > been some years now. I don't mind learning either so please include > your likes and dislikes. django and fastapi are two of the top choices. a LOT depends on what you want to accomplish. There are dozens of Python web frameworks at all levels from super lightweight to really full-featured. I'm not a Django fan myself, it's a lot for a small project; I find Flask more accessible, but jjinja templates are admittedly somewhat irritating (it will be really interesting to see how things evolve now that Python's about to get template strings in 3.14). Static site generator Pelican uses jinja templates too - it's about as easy as it gets. Pyramid is also quite popular. "Is Django still..." - absolutely.! It caught some flak for (because it predated their popularity) not playing well with front-tend technologies like React (so maybe this is part of your "apps" question), but now there's something called the Django REST Framework which is supposed to solve that. Not familiar with it in more than name. I'll let others talk about FastAPI, which I've only squinted at. _______________________________________________ Tutor maillist - To unsubscribe send an email to [email protected] To unsubscribe or change subscription options: %(web_page_url)slistinfo/%(_internal_name)s