[Web-SIG] A more useful command-line wsgiref.simple_server?

Masklinn masklinn at masklinn.net
Thu Mar 29 12:47:16 CEST 2012


On 2012-03-29, at 12:38 , Graham Dumpleton wrote:
> On 29 March 2012 21:02, Masklinn <masklinn at masklinn.net> wrote:
>> Moving here as suggested by Terry Reedy as this list may be more
>> interested than -ideas (note: some feedback already used to revise
>> the original proposal, and a very basic patch — with no tests — is
>> provided for the current CPython default branch)
>> 
>> Currently, calling wsgiref.simple_server simply mounts the (bundled)
>> demo app.
>> 
>> I think that's a bit of a lost opportunity: the community seems to have
>> mostly standardized on a wsgi script providing an application callable
>> in its global namespace (though details may differ, mod_wsgi does not
>> care for the script's name and mandates an `application` callable while
> 
> Apache/mod_wsgi only defaults to 'application', it is configurable.

OK, I didn't see any note on the subject so I didn't think that was the
case. Sorry. That's what my (revised) proposal supports anyway,
defaulting to 'application' but overridable.



More information about the Web-SIG mailing list