On Aug 7, 12:51 am, "Srinivasan R" <[EMAIL PROTECTED]> wrote:
> Hi,
> I am trying to deploy my TG project usingmod_pythonon Apache 2.
> After doing all the steps, I get the following error, when I try to
> access my app.
>
> Mod_pythonerror: "PythonFixupHandler domex_modpython"
>
> Traceback (most recent call last):
>
>   File "/usr/lib/python2.5/site-packages/mod_python/apache.py", line
> 287, in HandlerDispatch
>     log=debug)
>
>   File "/usr/lib/python2.5/site-packages/mod_python/apache.py", line
> 464, in import_module
>     module = imp.load_module(mname, f, p, d)
>
>   File "/usr/lib/python2.5/site-packages/domex_modpython.py", line 8, in
>     turbogears.update_config(configfile="/home/cnu/projects/TGDomex/prod.cfg")
>
>   File 
> "/usr/local/lib/python2.5/site-packages/TurboGears-1.0.2.2-py2.5.egg/turbogears/config.py",
> line 207, in update_config
>     configure_loggers(configdict)
>
>   File 
> "/usr/local/lib/python2.5/site-packages/TurboGears-1.0.2.2-py2.5.egg/turbogears/config.py",
> line 136, in configure_loggers
>     config["global"]["tg.new_style_logging"] = False
>
> KeyError: 'global'
>
> Also is there some better docs for deploying behing Apache using proxy
> (other than the wiki)

Perhaps consider using mod_wsgi instead for hosting under Apache. When
using mod_python you may possibly encounter reliability problems if
using SQLObject in database layer instead of newer SQLAlchemy. See
comments by Mark on Jul 21, in response to my queries, in thread:

  
http://groups.google.com/group/turbogears/browse_frm/thread/fb2ca8fccebfcfcd/ddd77a3ea9c15bf2

Since you are using 1.0.2 you would be affected.

Note that this has nothing to do with your initial problem, but just a
warning if you do manage to get it working. If you use mod_wsgi
instead, one can use daemon mode to delegate TurboGears to run in a
single daemon process and avoid the problem with the version of
TurboGears you are using.

For further details on mod_wsgi see:

  http://www.modwsgi.org

For specific details on using TurboGears with mod_wsgi see:

  http://code.google.com/p/modwsgi/wiki/IntegrationWithTurboGears

It is recommended you still read basic installation and configuration
guide for mod_wsgi first though to familiarise yourself with mod_wsgi
before trying to get TurboGears working.

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