About 255,000 results
Open links in new tab
  1. Asynchronous support | Django documentation

    Django has support for writing asynchronous (“async”) views, along with an entirely async-enabled request stack if you are running under ASGI. Async views will still work under WSGI, but with performance penalties, and without the ability to have efficient long-running requests.

  2. Using python async / await with django restframework

    Oct 20, 2017 · By making start() async, you can make direct use of the existing running loop, and by using asyncio.Task, you can fire and forget into the existing running loop. And if you want to fire but remember, you can create another Task to follow up on this one, i.e.: await tasks.update_all(deep_crawl, season, log_to_db)

  3. Unlocking Performance: A Guide to Async Support in Django

    Jun 25, 2023 · In the world of Django, async support has emerged as a powerful tool for unlocking performance improvements. By embracing async programming, developers can take advantage of non-blocking operations, improved scalability, and enhanced responsiveness.

  4. Modern best approach to using Django ORM with async?

    Django has support for writing asynchronous (“async”) views, along with an entirely async-enabled request stack if you are running under ASGI. Async views will still work under WSGI, but with performance penalties, and without the ability to have efficient long-running requests.

  5. Asynchronous Django: How to Make Your App Faster with async

    Feb 23, 2025 · Django has long been known for its synchronous request-response cycle, but with Django 3.1+, support for asynchronous views was introduced, allowing developers to take advantage of Python’s...

  6. Running tasks concurrently in Django asynchronous views

    Apr 13, 2023 · Mariusz Felisiak, a Django and Python contributor and a Django Fellow, explores how to use recent async improvements in Django to run multiple async tasks in an asynchronous view! Django on Fly.io is pretty sweet. Check out how you can be …

  7. A Comprehensive Guide to Asynchronous Capabilities in Django

    Jun 11, 2024 · Asynchronous views allow Django to handle HTTP requests asynchronously, which can significantly enhance performance for I/O-bound tasks. Here’s a simple example of an asynchronous view: return...

  8. Django Async Support with Coding Samples - DEV Community

    Sep 17, 2023 · Django introduced asynchronous (async) support starting from Django 3.0. This feature allows developers to write asynchronous code within Django applications, taking advantage of Python's async and await syntax.

  9. Asynchronous API in Django. Async API (Asynchronous API

    Jun 23, 2024 · Building an asynchronous API in Django involves leveraging Django’s support for async views and channels. Below is a step-by-step guide on how to create an async API in Django: Initiate Task:...

  10. Async Views in Django | TestDriven.io

    Apr 26, 2022 · Write an async view in Django; Make a non-blocking HTTP request in a Django view; Simplify basic background tasks with Django's async views; Use sync_to_async to make a synchronous call inside an async view; Explain when you should and shouldn't use async views; You should also be able to answer the following questions:

  11. Some results have been removed