hi thang, is there anything in your error log?
On Apr 2, 1:05 am, Thang Nguyen <[email protected]> wrote: > Hi, > > I am running into a problem in deploying a simple TG2.1.4 application > to Apache via mod_wsgi. My OS is Windows XP. > > Background: > ----------------- > 1) This is a very simple TG2 website (taken directly from TG2 > website - "example"). > 2) I have Apache 2.2, mod_wsgi installed and worked fine together > (in fact, I was able to use mod_wsgi with other python web framework > (web.py)) > 3) The TG2 app (example) itself works fine in virtualenv (e.g > paster serve production.ini) > 4) I was able to use modwsgi_deploy helper script and did all config > changes according to README.txt. In fact, I was able to run the > test.wsgi successfully without any problem. > > example > |-- apache > | |-- README.txt > | |-- example > | |--example.wsgi > | |--test.wsgi > > However, here is the problem. > When I run the "example" app, (e.g. http://localhost/example), it > never returns, the page seems busy doing something (or just hangs). > NOTE: I do NOT have any problem with running test.wsgi > (e.g.http://localhost/test) > > Here is my example.wsgi: > ------------------------------------ > > import sys > prev_sys_path = list(sys.path) > > import site > site.addsitedir('C:/TG2APP/tg2env/Lib/site-packages') > > new_sys_path = [] > for item in list(sys.path): > if item not in prev_sys_path: > new_sys_path.append(item) > sys.path.remove(item) > sys.path[:0] = new_sys_path > > import os, sys > sys.path.append('C:/TG2APP/example') > os.environ['PYTHON_EGG_CACHE'] = 'C:/TG2APP/example/python-eggs' > > from paste.deploy import loadapp > application = loadapp('config:C:/TG2APP/example/production.ini') > > ------------------------------------ > Any pointer/help is really appreciated. > > Thanks > Thang -- 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.

