2008/10/22 wmiller <[EMAIL PROTECTED]>:
>
> just starting out with mod_wsgi on apache and I'm wondering, is it
> less than ideal to have separate *.wsgi files for each URL versus just
> one root *.wsgi file that parses and handles all the URLs for a
> website?
>
> In the sandbox environment I'm working in I have a separate *.wsgi
> file for each URL because it's an easy way to get started.  I'm
> guessing for performance and resource reasons, it won't scale very
> well - multiple Python interpretors running?
>
> I'd prefer to avoid using frameworks or middleware and just stay as
> low level and basic as possible, e.g. for each URL a simple file like
> this with additional code/functionality depending on requirements:

You will need at least a low level tool box like Werkzeug otherwise it
will be too much low level. It includes a URL routing system and
request and response objects.

Regards, Clodoaldo

>
> def application(environ, start_response):
>    start_response('200 OK', [('content-type', 'text/html')])
>    HTML = "<html><body>%s</body></html>"
>    HTML %= "Hello world!"
>    return [HTML]
>
>
> -Walter
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to modwsgi@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to