Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Backend
/
Django
A Django 6.0 async view must perform several ORM writes in one transaction. What is the s…
from Django
Django 6.0.8 / Python 3.14
advanced
1 min
A Django 6.0 async view must perform several ORM writes in one transaction. What is the supported design?
Put the transactional ORM work in one synchronous function and call it through sync_to_async().
Use async with transaction.atomic() directly around async ORM calls.
Set DJANGO_ALLOW_ASYNC_UNSAFE so synchronous transaction code can run freely.
Check
Ask AI about this kata
Report an error
next kata
A RunPython data migration needs the Order model. Which lookup is safe for the recorded m…
Quiz
A new version is available
Reload