|
|
|
|
|
by djstein
927 days ago
|
|
for those keeping up with Django’s async story the biggest updates with Django 5.0 are: The new asynchronous functions are now provided, using an a prefix: django.contrib.auth.aauthenticate(), aget_user(), alogin(), alogout(), and aupdate_session_auth_hash(). AuthenticationMiddleware now adds an HttpRequest.auser() asynchronous method that returns the currently logged-in user. [Edit: paste wasn’t the full sentence] |
|