[Django] #35307: make async generic views

7 views
Skip to first unread message

Django

unread,
Mar 15, 2024, 4:08:38 PM3/15/24
to django-...@googlegroups.com
#35307: make async generic views
-----------------------------------------+--------------------------------
Reporter: amirreza | Owner: nobody
Type: New feature | Status: new
Component: Generic views | Version: dev
Severity: Normal | Keywords: async, generic
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+--------------------------------
hello
i'm very new to async so this might be very dumb or maybe not, i didn't
find anything about it with google so might as well see

i think we should add async generic class based views

my reasons:
1- easy to use
2- makes writing docs and tutorials on async django easier
3- it can be used as a standard on how to write async class based views
4- can attract more devs to use and contribute to async django

also i think seprating normal gcbv and async ones can make the code easier
to debug
also leaves less un-used code in classes
and makes learning this much easier for beginners

anyways i hope this is not dumb :) and can help django improve
--
Ticket URL: <https://code.djangoproject.com/ticket/35307>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Mar 16, 2024, 6:43:58 AM3/16/24
to django-...@googlegroups.com
#35307: make async generic views
--------------------------------+--------------------------------------
Reporter: amirreza | Owner: nobody
Type: New feature | Status: closed
Component: Generic views | Version: dev
Severity: Normal | Resolution: invalid
Keywords: async, generic | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------+--------------------------------------
Changes (by Mariusz Felisiak):

* resolution: => invalid
* status: new => closed

Comment:

Class-based views already allow defining async method handlers, check out
[https://docs.djangoproject.com/en/dev/topics/class-based-views
/#asynchronous-class-based-views docs].
--
Ticket URL: <https://code.djangoproject.com/ticket/35307#comment:1>
Reply all
Reply to author
Forward
0 new messages