What is exactly slow when building APIs in Python and compared to what? :)
HN user
bkovacev
borkopolo [at] gmail.com
I lost a family member recently as well. Sorry for your loss. I would love to use this, yet my POST request (when answering) is blocked. Is it geo-location based or something? I'm not using an ad-blocker or anything.
Jared Kushner tried a similar thing in Serbia[0] and failed after a public outrage.
[0] https://www.washingtonpost.com/world/2025/12/17/serbia-trump...
I loved command and conquer series... Red Alert, Generals, all bring back a lot of memories!
So, what should we buy next? There can be bread for all of us :D
I have used it for personal coding projects - expo react native projects and a Django backend. my account got banned, as the company owner non the less. My teammates were using it for the company projects (all coding through the codex app / vs code) and they were not banned.
Same thing happened to us with OpenAI. Appeal did nothing.
Is there any way to check if a subreddit that was made private (2-3 years ago) is in the data dump?
I really like the minimalistic design of the website, but I was disappointed to see Wordpress used. Does anyone know if something similar exists whether free or paid - as long as it's available as plain CSS/HTML?
Fruska gora, a mountain region in Serbia, has acquired or were gifted 5 European bisons from Poland[0]. It's always heartwarming to see a country working extremely hard to preserve any species. It was devastating news for a lot of people that one of the bisons, Djuka, passed away recently (not to be confused with a Serbian politician Vladimir Djukanovic also known as bison Djuka[1]).
[0] https://www.gov.pl/web/srbija/poljski-bizoni-u-nacionalnom-p...
I'm unsure how have you not stumbled upon RustDesk[0].
This comment made my day.
That would have been my argument exactly - I am not saying that Django fits every use case, but with my limited exposure to projects that have ended up using non-Django Python API framework, they ended up recreating the batteries included approach, with probably way too many issues waiting to be discovered with manually rolled out auth, middlewares and ORM.
Aside from the obvious that ninja let's you use django.
Old is a harsh word, maybe mature would be a better fit, not everything new and shiny is gold, and yet not everything old sucks.
Not arguing here about types and Pydantic being faster than the built in ModelSerializers. However, for serializer speed improvements and performance in DRF I would advise dropping ModelSerializers and either going for Serializers or plain dict. Haki Benita has a beautiful article on that [0]. I was able to accomplish sub 200 response times on a fairly large response from tables that had tens of millions of records.
I think you have no objective reason other than your styling and rather personal preference for function based views?
Can you explain further on the performance aspect of Django Ninja vs DRF?
What seems to differentiate django-ninja over Flask or FastAPI or any Starlette derivative? You mention lightweight as well, can you expand further?
Care to elaborate further? I keep reading on this, but no one actually mentions anything specific that ninja does better than DRF.
I have been building something like this for myself. Is there a room for a paid software, and would you be willing to pay for something like that?
I'm genuinely surprised it got my accent right. Coming from Serbia, I'd never expect to get it right. My first guess was that it's geo-ip based, but I could be wrong.
While we are it - are there any good resources on how to best self host a Postgres database? Any tips and tricks, best practices, docker / no docker etc? I’m looking to self host a database server for my multiple pet projects, but I would love to get backups, optimizations and other stuff done well.
I have had similar thing happen with Wise, a year or two ago. I’ve looked into alternatives like Mercury and Brex. If you opened up your business through Stripe Atlas or Doola and the likes could you ask them for support?
If you don’t mind me asking - what country do you reside in?
That's actually quite interesting - same configuration with i7 1280p and on windows and wsl2! Blah, I wish I knew what you were doing differently. The moment that Chrome, Slack, Docker and PyCharm are up and running, it gets quite loud :(
I have two framework laptops with Intel CPU. I unfortunately would not recommend framework with Intel - they can't handle any development workload through docker without the risk of launching to the moon from the fans spinning. I hope that AMD ones are better.
Here's a few more channels that I personally enjoy and recommend:
- Ethan Chlebowski https://www.youtube.com/@EthanChlebowski
- Adam Ragusea https://www.youtube.com/@aragusea
I tried numerous recipes from both and learned quite a bit about the technique as well.
They sure act as one.
How would this (or any of the recent changes) affect popular web frameworks like Django / Flask / FastAPI? Would this increase performance in serialization or speed in general?
Just a few observations:
- Async... The Django way of doing things... Celery -> it's a background task system which is like bringing a bazooka to kill a fly for what you wanted to do (I assume proxying the request to an external API).
- database I/O and calling external services -> Use gunicorn gevent worker type that brings up the pseudo threads.
- JWT was poorly supported -> There's at least 5 battle tested libraries that you can use to implement JWT alone (simplejwt comes to mind first)
- the most popular auth library needed quite a bit of manual patching in code to make it all work -> Which one? There's few that are standard and most are easy to customize via global settings.
- Raw deployment on PaaS like Heroku and Elastic Beanstalk -> that's more on the platform rather than Django itself
- DRF -> I agree, DRF has it's own way of doing things and deviating from them can give you massive headaches.
You're right, my bad! Regarding continuous protection that works flawlessly as it has saved us 2-3 times already!
We have a:
- ~500gb one fails to backup
- ~1tb one fails to backup
- ~100gb one succesfuly backups
The link where I got that number is here - https://devcenter.heroku.com/articles/heroku-postgres-backup...