News for hackers. Stuff that matters.

Ask HN: Is Django a good choice as a framework for starting up in 2022

Hi, I'm looking to build my startup currently as a solo founder and am stuck on deciding which language/platform to build with.

I have about 5-6 years of experience with Flask websites and a few months of experience in Django. Django does make a lot of the boilerplate stuff easy, but there's a learning curve with FormView, ListView etc. However the code is cleaner since I don't need to have dozens of endpoints.

I've also considered learning React and have built a small prototype but my productivity is way lower since I'm still learning the nuances.

Has anyone here had experience maintaining Django long term? How has it worked out for you? Is it very expensive from a server/hosting perspective? Is it hard to maintain later? Will I regret choosing Django later?

( 11 comments | on HN )
Re:Ask HN: Is Django a good choice as a framework for starti... by geenat on Saturday October 08, 2022 @03:51AM (#33130591)
Django + htmx
Re:Ask HN: Is Django a good choice as a framework for starti... by Jugurtha on Saturday October 08, 2022 @09:32AM (#33132143)
>I'm looking to build my startup currently as a solo founder

Great!

Do more towards this, less about everything you wrote after that.

Can you profitably solve a problem for a market you can reach? Can you then do it repeatably?

You want to build a start-up but your post was about Django, FormView, ListView, and React...

What should you be doing that you're hiding from behind the sudden urge to focus on things that don't matter?

You have six years of experience with Flask; you obviously can write code. The start-up cemetery is filled with billions of lines of code in every imaginable language and framework. Don't worry about that.

Re:Ask HN: Is Django a good choice as a framework for starti... by ddorian43 on Saturday October 08, 2022 @10:16AM (#33132434)
> I have about 5-6 years of experience with Flask websites and a few months of experience in Django.

Use what you know best. Hell, do it in Django so if the startup fails you'll have more chances to land a django job (for some reason they always require django specifically).

> However the code is cleaner since I don't need to have dozens of endpoints.

You can have clean code with Flask too. I don't see why "dozen of endpoints" though.

Re:Ask HN: Is Django a good choice as a framework for starti... by leros on Saturday October 08, 2022 @10:34AM (#33132616)
Use what you know. If it works out, you'll be able to afford to hire people that can rebuild it (if that's even needed).
Re:Ask HN: Is Django a good choice as a framework for starti... by aregsar on Saturday October 08, 2022 @11:00AM (#33132851)
You can use wsvincent.com blog and Django books if you go the Django route which I would recommend. Combine that with htmx and alpinejs.
Re:Ask HN: Is Django a good choice as a framework for starti... by aregsar on Saturday October 08, 2022 @04:02PM (#33135528)
I found this link that shows how htmx and alpinejs integrate with django. https://www.saaspegasus.com/guides/modern-javascript-for-dja...
Re:Ask HN: Is Django a good choice as a framework for starti... by rlawson on Saturday October 08, 2022 @09:28PM (#33137544)
Go with Django as everything is included to get up and running quickly. Your most precious commodity as a founder is your time and attention. Skip the js and build a web 1.0 site that solves a real problem that people will hand you cash for and then hires some UI people to fancy it up
Re:Ask HN: Is Django a good choice as a framework for starti... by joshxyz on Sunday October 09, 2022 @01:01AM (#33138397)
yes just go with the teh stack youre familiar with, the goal is to solve their problems and get sales
Re:Ask HN: Is Django a good choice as a framework for starti... by bjourne on Sunday October 09, 2022 @03:17PM (#33144311)
Yes.
Re:Ask HN: Is Django a good choice as a framework for starti... by a_lifters_life on Monday October 10, 2022 @11:07AM (#33152307)
going this route too - django is a solid framework - well supported, and documented. Ill be going this route, and as others said rebuilding entirely once product market fit is found
Re:Ask HN: Is Django a good choice as a framework for starti... by infamia on Tuesday October 11, 2022 @07:07PM (#33170442)
Many startups have successfully used Django including Instagram, Pintrest, Disqus, DoorDash, etc. These and many other startups have scaled a long way without needing to change frameworks. That said, use what you know and will allow you to test your idea ASAP.