On 10 May 2011 13:19, Gnarlodious <[email protected]> wrote: > Hello. I have a number of scripts that make up a website. One script > receives all query strings and imports modules accordingly.
What is it implemented in at the moment? > The > problem is that the application runs and quits losing all data between > runs. This means it is constantly building objects from data, which is > slow and makes for a bulky query string. I think what I need is an > always-on process that remembers data, to this end the Python list > recommended WSGI running in daemon mode. > > I think what I need is to "load a script" when Apache starts up. > Perusing the page at: > http://code.google.com/p/modwsgi/wiki/ConfigurationDirectives > reveals these config options: > > WSGIDaemonProcess > WSGIPythonExecutable > WSGICallableObject > WSGIImportScript > > What do I need to set this up? I haven't found any simple > instructions. I can imagine launching an instance of a class, but how > to? Example websites? Sorry this is all new to me, I barely understand > it . Start here: http://code.google.com/p/modwsgi/wiki/WhereToGetHelp?tm=6#Hello_World_Program This is on the main page of the mod_wsgi wiki. If you don't know anything about Python web application program and/or WSGI you might also look at: http://www.wsgi.org/wsgi/ I would perhaps though highly recommend you go off and use an existing Python web framework rather than start from scratch. A good candidate to start with is Flask. See: http://flask.pocoo.org/ Graham -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to [email protected]. 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.
