News for hackers. Stuff that matters.
Re:Django 4.0 release candidate 1 released by sgt on Monday November 22, 2021 @05:51AM (#29305042)
Nothing stopping you from writing a Django app with parts written in React, VueJS or whatever you prefer.
Re:Django 4.0 release candidate 1 released by creimers on Monday November 22, 2021 @06:57AM (#29305432)
Obviously nothing is stopping me, that's not the point. I was just highlighting the fact that in my opinion the DX of parts of Django is inferior compared to the JS frontend ecosystem. As the Django community, I think this is something we should have an eye on.
Re:Django 4.0 release candidate 1 released by sgt on Monday November 22, 2021 @08:03AM (#29305909)
You're absolutely right in the sense that the Django and other communities should not stagnate and should also keep an eye on what the other frameworks are up to. Maybe the default template engine should be replaced in Django?
Re:Django 4.0 release candidate 1 released by rglullis on Monday November 22, 2021 @08:57AM (#29306313)
Template engines are already configurable and pluggable for quite a while.

The "problem" is that most of the third-party apps that want to provide templates end up using the default, so either you have to reimplement those or stick with the default engine.

Re:Django 4.0 release candidate 1 released by ensignavenger on Monday November 22, 2021 @09:38AM (#29306705)
You can use both the Django Template Engine and other template engines side-by side in the same project. You can then write your custom templates in whatever you want, and have your third-party apps use whatever template engine they want to.
Re:Django 4.0 release candidate 1 released by rglullis on Monday November 22, 2021 @11:44AM (#29308416)
My comment was more in the sense of wanting to extend third-party templates, but yeah, if you don't need to touch them you should be fine as well.