←back to thread

379 points rbanffy | 6 comments | | HN request time: 1.015s | source | bottom
1. viiralvx ◴[] No.46214586[source]
Template Partials and HTMX seems like the Django equivalent of View Components and Stimulus for Rails, which is nice.

Also, good to see first class support for Tasks, among a lot of other niceties!

replies(2): >>46215120 #>>46216752 #
2. sgt ◴[] No.46215120[source]
If I understood correctly, to use Tasks in production right now you need to use this as well:

https://github.com/RealOrangeOne/django-tasks

Is that correct?

replies(1): >>46216000 #
3. selcuka ◴[] No.46216000[source]
Correct. Django 6.0 comes with a standardised API, with 2 testing backends (ImmediateBackend and DummyBackend). You need a third-party backend to store and execute tasks.
replies(1): >>46216568 #
4. sgt ◴[] No.46216568{3}[source]
Good to know. So no need for Django Q2 or Celery anymore either. I guess unless one has a specific reason.

Has there been discussion about adopting/embedding django-tasks into Django 6.x?

replies(1): >>46223548 #
5. bigthymer ◴[] No.46216752[source]
Rails renders partials

https://guides.rubyonrails.org/layouts_and_rendering.html#pa...

6. adamchainz ◴[] No.46223548{4}[source]
django-tasks is the reference implementation for django.tasks, by the same author. It's up for discussion if and when the DatabaseBackend gets merged, and it seems likely to me that a Redis-based backend would be suggested at some point. It takes time and energy though!