Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Me too, I'm convinced it has a place - the number of single file projects over the past few years can't be a coincidence.

For me the two missing pieces were models and a path to migrate to a full project once it outgrew a single file, so I wrote nanodjango (https://github.com/radiac/nanodjango/, formerly django-flasky) - you can use the ORM and admin site, and I recently added a "convert" command to automatically break up a single page app into a full Django project structure.

I've been using it for a couple of years for prototyping/experimenting and putting together small apps, and with the new features this year feels like it's a really practical alternative to flask.



> I'm convinced it has a place - the number of single file projects over the past few years can't be a coincidence.

The human soul yearns for the simplicity of php or cgi-bin hosting, without the horrors of PHP or C


Mine certainly does - we lost so much when we killed off our cgi-bin/guestbook.pl


This looks really cool, congratulations.

Are you planning to add some kind of API serving functionality (either by integrating something like Django Ninja or even raw Pydantic)? I think such single file frameworks are great candidates to implement microservices.


Thanks! Yes definitely, I think it's a great fit for anything self-contained and limited scope that doesn't need a lot of code. I've certainly found having an easy way to run a single file using Django's ORM is pretty handy.

Regarding API serving, I'm planning on making it easier to use third party apps; the main obstacle is registering `includes` urls, which is doable at the moment but involves manually appending a path to `nanodjango.urls.urlpatterns`. I want to expand route registration to give a nicer internal api, then once that's in place Django Ninja should work pretty much out of the box - the only different should be how you register the url.


This looks amazing ! Bravo


Thank you, it's great to have positive feedback!




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: