https://stackoverflow.com/questions/59119396/how-to-use-djan...
https://forum.djangoproject.com/t/is-there-a-way-to-disable-...
https://stackoverflow.com/questions/59119396/how-to-use-djan...
https://forum.djangoproject.com/t/is-there-a-way-to-disable-...
Using django in a notebook is definitely not a typical use case so I wouldn't worry about it too much.
Ideally the ORM would be a standalone package that could be used outside of the web server context. (I know sqlalchemy is an option but then you lose all of the benefits of django)
It's still kind of a mess though because you have two universes that are not really compatible, forcing you to rewrite everything that touches IO. For django that probably means a rewrite of the ORM, caching and middlewares.
Alternatively, you can also use it with a plain Promise, which makes for a nice mutex. I've also used this for imitating async constructors, which is not currently possible.