Discover how to integrate the new Python 3.13 REPL into your Django project despite the default shell showing the old Python REPL. Learn about a workaround solution using the `_pyrepl` package, while also understanding the stability trade-offs. The Django `shell` command can be customized to try different REPLs in sequence, including IPython, bpython, and the new Python 3.13 REPL, falling back to the old one if needed. For those using the default Python REPL, the new REPL presents a significant upgrade in usability and features.
Table of contents
How stable do you need your shell command to be?A working solutionHow it worksWhat’s so great about the new REPL?Sort: