[TurboGears] Re: cannot import name config

2006-04-23 Thread beza1e1

Now my App runs on Port 8080 and Apache on Port 80 is a RewriteRule
Proxy. The problem a raise HTTPRedirect leads to the Port 8080
Version. This works as long as this Port is open but how can i tell
TurboGears/Cherrypy to use another host:port ?


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



[TurboGears] Re: cannot import name config

2006-04-23 Thread Jorge Godoy

Em Domingo 23 Abril 2006 19:26, beza1e1 escreveu:
 Now my App runs on Port 8080 and Apache on Port 80 is a RewriteRule
 Proxy. The problem a raise HTTPRedirect leads to the Port 8080
 Version. This works as long as this Port is open but how can i tell
 TurboGears/Cherrypy to use another host:port ?

Take a look at the wiki.  And use turbogears.redirect() instead of 
cherrypy.HTTPRedirect(turbogears.url()) ;-)

I recommend using mod_proxy instead of mod_rewrite since it is much easier to 
setup.

-- 
Jorge Godoy  [EMAIL PROTECTED]


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



[TurboGears] Re: cannot import name config

2006-04-22 Thread Alberto Valverde


On 22/04/2006, at 23:38, beza1e1 wrote:
 Thanks for your advice, now app is online now! :-) (dreffen.de but
 nothing to see there)

Good :)

 mod_python essentially is broken. So why does TurboGears advertise it?
 Because everybody does?

I don't see it as an advertisement, it just happens that you *can*  
actually deploy it there so the docs state it. My impression is  
however that the *recommended* way is through a proxy.

  I'm pretty sure older versions of mod_python in apache1 have no  
problems, however, 2.4 is recommended for TG as it does heavy use of  
some of it's new features (decorators or threadlocal in CP, for  
example).

Regards,
Alberto

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



[TurboGears] Re: cannot import name config

2006-04-21 Thread beza1e1

I think this is a bug in mod_python:
http://issues.apache.org/jira/browse/MODPYTHON-12

Since the code triggering this bug is in TurboGears, we can say
TurboGears needs at least mod_python 3.2.7. Shouldn't this be mentioned
in the docs?


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



[TurboGears] Re: cannot import name config

2006-04-21 Thread beza1e1

Neither SuSE nor
Debian nor Gentoo provide mod_python 3.2.* ... how do you guys run
TurboGears with mod_python???


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



[TurboGears] Re: cannot import name config

2006-04-21 Thread Alberto Valverde


On 21/04/2006, at 15:41, beza1e1 wrote:


 Neither SuSE nor
 Debian nor Gentoo provide mod_python 3.2.* ... how do you guys run
 TurboGears with mod_python???

As a former mod_python + TG user i'd recommend you to follow the  
masses and set up an Apache proxy and keep cherrypy running with  
supervisord. I'd save you many troubles, specially if running a  
worker MPM since mod_python seems to have a threading bug regarding  
multiple interpreters.

I can even feel my apps faster this way :)

Alberto

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