News for hackers. Stuff that matters.
Re:Building a full Django project, starting with a single file by selcuka on Wednesday April 24, 2024 @02:51AM (#40141440)
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.

Re:Building a full Django project, starting with a single file by radiac on Wednesday April 24, 2024 @03:38PM (#40148643)
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.