The big picture is: I want to use eventlet in some application that does asynchronous IO while working with Django models externally. Working with Django externally is simple (see Django: How can I use my model classes to interact with my database from outside Django?) but it s not the main problem.
我预言,使用绿素的Django是危险的。 实际上,就心理学范围2而言,我们有这一警告(见:
Psycopg connections are not green thread safe and can’t be used concurrently by different green threads
在Django,每read(右?)有一条 connection线,因此在使用时可能会导致假想。 能否人工提供某种连接? 或使之“绿色-地方”?
我的动机是利用活动手册的链接() 因此,我可以加快我的跨组织适用。