[Web-SIG] A more useful command-line wsgiref.simple_server?
Geoffrey Spear
geoffspear at gmail.com
Fri Mar 30 21:58:52 CEST 2012
On Fri, Mar 30, 2012 at 3:20 PM, Masklinn <masklinn at masklinn.net> wrote:
> 2. You seem to have asserted from the start that the default should be
> mounting modules, but I have seen no evidence or argument in favor of
> that so far.
>
> Defaulting to scripts not only works with both local modules and
> arbitrary files and follow cpython's (and most tools's) own behavior,
> but would also allows using -mwsgiref.simple_server as a shebang
> line. I find this to have quite a lot of value.
I may be dense, but is there actually a use case for using a WSGI
application from a script? Presumably a script that defines a WSGI
application would also run it.
More information about the Web-SIG
mailing list