News for hackers. Stuff that matters.
Re:Django Unicorn – A full-stack framework for Django by junon on Saturday June 05, 2021 @07:26AM (#27404031)
Django is already terrible. Why build a framework on top of another framework?

This is madness.

Re:Django Unicorn – A full-stack framework for Django by tticvs on Sunday June 06, 2021 @06:06AM (#27412019)
I agree, the “batteries included” approach makes it very attractive for a new startup to use to get off the ground quickly. But in every case I have seen (3 separate companies now) it lets the team run up a huge amount of tech debt and get a lot of features locked into a very unscaleable, unperformant, architecture.

It’s tempting to prototype with it, but I can’t think of a single use case that wouldn’t be better served with another framework.

Django is not appropriate for production imo

Re:Django Unicorn – A full-stack framework for Django by boxed on Sunday June 06, 2021 @12:06PM (#27414042)
What a load of crap. I worked for 10 years on a huge code base.

Using flask and SQLAlchemy is worse in every way for example.

Re:Django Unicorn – A full-stack framework for Django by tticvs on Monday June 07, 2021 @06:34AM (#27420981)
Yes, those would also be a very bad choice for a large project. But at least they have the advantage of being very lightweight so can be a good fit for adding simple crud features to a microservice, especially ML services that already need to use python for other reasons.

Django is the worst of both worlds. Not suited for small services, and not able to scale with large ones.

To your "load of crap" point, web development looked very different >10 years ago, Django was a lot better fit for that era. There is _zero_ reason to use it today.

Re:Django Unicorn – A full-stack framework for Django by boxed on Friday June 11, 2021 @02:44PM (#27477027)
What would you suggest as an alternative?
Re:Django Unicorn – A full-stack framework for Django by junon on Sunday June 06, 2021 @07:25AM (#27412360)
Entirely agreed. This has been my experience as well.
Re:Django Unicorn – A full-stack framework for Django by legostormtroopr on Saturday June 05, 2021 @08:35AM (#27404399)
What makes you think Django is terrible
Re:Django Unicorn – A full-stack framework for Django by junon on Saturday June 05, 2021 @10:37AM (#27405412)
I worked with it exclusively for a year. Its ORM is magic, its performance is terrible, its configuration is cryptic at best, its handler system is worse than just writing your own.

Everything about Django is terrible.

Re:Django Unicorn – A full-stack framework for Django by boxed on Sunday June 06, 2021 @12:08PM (#27414057)
I worked with it 10 years.

The ORM is pretty trivially understandable and not magic at all.

The configuration is pretty straight forward and we'll documented.

The url routing is pretty good although it could be improved. It's a lot better than flask when you go beyond an MVP at least.

Re:Django Unicorn – A full-stack framework for Django by junon on Sunday June 06, 2021 @12:30PM (#27414213)
Sorry, but creating reverse reference fields at runtime that can't be statically checked or enumerated is 100% magic.
Re:Django Unicorn – A full-stack framework for Django by boxed on Friday June 11, 2021 @02:43PM (#27477018)
You mean of the models? But those are literally created at import time. That's as close to "statically" as things get with python really (except the text of the code).
Re:Django Unicorn – A full-stack framework for Django by _throwawayaway on Monday June 07, 2021 @11:08AM (#27423466)
Would you mind pointing to the example of a system with less or no magic?