Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #795 (closed defect: fixed)

Opened 13 years ago

Last modified 9 years ago

turbogears behind mod_python

Reported by: maram Owned by: anonymous
Priority: high Milestone: 1.0.x bugfix
Component: Documentation Version:
Severity: normal Keywords:
Cc:

Description (last modified by jorge.vargas) (diff)

migrate this document to current TG if not possible then create a doc explaining why TG is incompatible.


go to http://trac.turbogears.org/turbogears/wiki/ModPythonIntegration09 for 0.9 version

Change History

comment:1 Changed 13 years ago by c.travis.bradshaw@…

How do the comments found at:  http://phirate.exorsus.net/wiki/doku.php?id=101_practical_turbogears_tips effect this guide?

For those that would rather not click:

I'm going to go production using apache and mod_python'''

Oooohhh no you’re not. You think you are, you might even get it working according to the instructions on the website. But you are doomed.

The reason you are doomed, is because SQLObject caches values, and if you turn off caching, your database will die a horrible query-intensive death.

And since SQLObject caches values, and you’re almost certainly running apache2 in some form of multi-process setup, each process loads the turbogears instance, and each changes the database independently, and the caches of the other ones don’t get updated, and it all turns into a steaming pile of confusion. Usually, slowly and subtley with od bugs like things not updating properly if you use a redirect and that kind of thing.

The answers to this problem are hard to locate. Everyone is raving about turbogears but I have yet to locate information on a good, solid, reliable production setup. Until then, I’m using apache2 with mod_proxy to the cherrypy instance. You can improve on this by mapping the static/ subtree directly in apache. I’ll update this when I figure things out. It’s *possible* that a multi-threaded server may keep things in sync properly, it is almost certain that a later version of SQLObject will resolve the issue in a better way (or at least fail obviously so you know it’s not gonna work).

I'm figuring if SQLObject can't really handle it, then this setup is somewhat doomed.

comment:2 Changed 12 years ago by jorge.vargas

  • Priority changed from lowest to high
  • Version changed from 0.9a4 to 1.0
  • Description modified (diff)
  • Summary changed from Comment on docs/deployment/mod_python.html to turbogears behind mod_python

comment:3 Changed 12 years ago by Chris Arndt

  • Status changed from new to closed
  • Version 1.0 deleted
  • Resolution set to fixed
  • Milestone set to __unclassified__

There is now a page on the docs wiki explaining how to use mod_python with TurboGears:

 http://docs.turbogears.org/1.0/mod_python

and the author claims that it works for him. I added a link to the page linked above and therefor close this ticket.

comment:4 Changed 9 years ago by chrisz

  • Milestone changed from __unclassified__ to 1.0.x bugfix
Note: See TracTickets for help on using tickets.