radiac/nanodjango: Run Django models and views from a single file, and convert it to a full project.

https://github.com/radiac/nanodjango

Via https://mastodon.cloud/@radiac/112641898082821618

In my experience flask is great until it isn't - I've seen quite a few projects which outgrew it, and the lack of django's batteries and guard rails left a maintenance nightmare. Not sure if it'll be helpful, but as a result I wrote nanodjango, which lets you write a django site in a single file, then convert it to a full project if you outgrow it.

8 points · 3 comments · view on lemmy.world

3 Comments

anzo@programming.dev · 3 pts · 2y

I must say, this is not only cute but convenient, and useful!

norambna@programming.dev · 2 pts · 1y

https://mastodon.cloud/@radiac/113096990972136170

Nanodjango 0.8 is out, adding async view and ASGI support. Now you can write async single file scripts that look like Flask or FastAPI, but with all #django features like models, auth, admin etc.

callcc@lemmy.world · 1 pts · 2y

Very interesting one. Although why not just make a nice template for your projects?