Re: A more useful command-line wsgiref.simple_server?

Masklinn <[email protected]> Thu, 29 Mar 2012 12:47:16 +0200
Newsgroups gmane.comp.python.web
Message-ID <[email protected]>
On 2012-03-29, at 12:38 , Graham Dumpleton wrote:
> On 29 March 2012 21:02, Masklinn <[email protected]> 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.

_______________________________________________
Web-SIG mailing list
[email protected]
Web SIG: http://www.python.org/sigs/web-sig
Unsubscribe: http://mail.python.org/mailman/options/web-sig/gcpw-web-sig%40m.gmane.org