3 ms·
Django is lovely, but it uses so much Python magic, so much metaclass chicanery, that if you try to use it moderately differently you'll hit roadblocks.
by EdwardDiego 4y ago
Django is lovely, but it uses so much Python magic, so much metaclass chicanery, that if you try to use it moderately differently you'll hit roadblocks.
- nszceta 4y agoIf you think Django has magic wait until you see the alternatives people come up with in FastAPI
- brianwawok 4y agoOr Ruby on Rails monkey patching library code
- wg0 4y agoPython needs a better and newer full stack framework. Been using Django for long but I consider its ergonomics to be quiet ugly from class based mixin views to models and forms being two separate things among others.
- thdespou 4y agoYeah it looks dated. It has its uses though.
- ehutch79 4y agoI'm actually super glad forms is separate from models. I've never liked the forms setup. Especially now that I mostly just use DRF.
- brianwawok 4y agoUse function based views. I do and way less magic.
- ttt3ts 4y agoCompared to the constant bitrot in "newer" frameworks I have grown to like Django more over the years. My old projects in Django still work. The meteor projects, flash apps, Android apps, less so. Modern software undervalues stability.
- mrweasel 4y ago> that if you try to use it moderately differently you'll hit roadblocks. That is certainly true, both for Django it self and the Django Rest Framework. If you try to fight Django on how you use it, you're going to have a bad time. One trick I use when working of Django projects is to look at my code and think: Am I writing too much code? If you have a method that more than 15 - 20 lines, you're most likely doing something wrong.
- alexfromapex 4y agoI find it funny how it is often compared to frameworks like Flask when it’s more like Wordpress for Python.
- ergvgdvgrd 4y agoIf you use django rest framework, it's a subset that covers flask.