On Jan 21, 6:38 am, "Florent Aide" <[EMAIL PROTECTED]> wrote:
> On Jan 20, 2008 12:41 PM, Florent Aide <[EMAIL PROTECTED]> wrote:
>
> > On Jan 19, 2008 1:06 AM, Graham Dumpleton <[EMAIL PROTECTED]> wrote:
>
> > > If people have got it working with TurboGears then please indicate if
> > > you have and what may have to be changed in the instructions. If I
> > > don't hear from anyone I'll remove the instructions and note
> > > TurboGears as not supported anymore instead.
>
> I confirm that I got a test application running with mod_wsgi 1.3 on
> apache 2.2 with python 2.5.
>
> The application was quickstarted with TG 1.0.4 final and was connected
> to a Postgresql database using Sqlalchemy 0.4.0. (I tested
> successfully using sqlite as the dbengine too). And to make things
> even more complicated I test all this under Windows XP.
>
> I did not have to make any changes to the scripts provided on the
> mod_wsgi webpage. (apart from cosmetics, like moving all the imports
> at the beginning)
>
> It is important to note that the config file path should be an
> absolute url. This is stated on the wiki page but some people may
> overlook the info by ready too quiclky.
>
> I must say a big thank you to Graham for his tremendous work on
> mod_wsgi! I'll do some benchs and then update the TG docs website to
> propose mod_wsgi as the default solution for people who desire
> integration with Apache.

One thing that has since been found is that for certain TG
applications it is important that the CherryPy root object is setup
prior to starting the CherryPy engine. The order in the script has
thus been changed to:

  import mysite.controllers

  cherrypy.root = mysite.controllers.Root()

  if cherrypy.server.state == 0:
      atexit.register(cherrypy.server.stop)
      cherrypy.server.start(init_only=True, server_class=None)

This minor difference may account for why some might have had issues.

Graham
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to