django-after-response - Execute Django code AFTER sending the response!

Описание к видео django-after-response - Execute Django code AFTER sending the response!

In this video, we'll look at the 'django-after-response' package for executing code after the response has been sent back to the client.

This allows us to offload processing and return a response more quickly and efficiently, improving user experience. For simple use-cases, django-after-response can replace more complex tools like Celery.

We'll set up an example in this video and walk through the steps to offload the bulk of the processing using this package.

☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
To support the channel and encourage new videos, please consider buying me a coffee here:
https://ko-fi.com/bugbytes

📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro
00:33 django-after-response introduction
02:32 Creating Django model with ImageField
04:05 Adding Django MEDIA settings
04:58 Creating HTML form for image uploads
07:00 Handling POST request in Django view
09:00 Processing the uploaded image
11:40 Rationale of image processing
12:22 Saving processed image to model field
15:01 Testing image upload
17:26 Offloading image processing with django-after-response

𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:
📖 Blog: https://bugbytes.io/posts/
👾 Github: https://github.com/bugbytes-io/
🐦 Twitter:   / bugbytesio  

📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
django-after-response: https://github.com/defrex/django-afte...
Serving Media Files in Development: https://docs.djangoproject.com/en/5.0...

#python #django #webdevelopment

Комментарии

Информация по комментариям в разработке