Reputation: 13816
I'm trying to understand how WSGI works. I know I could read the specs, but I'd still want to know how do I create a spawning application? A complete "hello world".
Could someone show me an example? With everything, file naming, creating the module, running it. Every and each step. Thanks.
(NB: while spawning seems a great piece of software, it has a stupid name: I cannot find anything successfully on the web on the matter, because everything related to "spawning" also relates to "multithreading" or "IPC").
Upvotes: 3
Views: 1295
Reputation: 798636
From what I can see in the documentation, Spawning just runs stock WSGI apps, which means that you just write a WSGI script and then invoke Spawning against it:
spawn helloworld.simple_app
spawn helloworld.simple_app middleware.Upperware
As always, make sure you have installed any modules it depends on, such as paste.deploy
.
Upvotes: 3