Am 15.10.2012 02:53, schrieb cht8:
I used TG 2.1.4 following the wiki guide on
http://www.turbogears.org/book/part1/wiki20.html#installing-the-development-tools

For mod_wsgi, I followed
http://turbogears.org/2.1/docs/main/Deployment/ModWSGI.html#apache-mod-wsgi.

If you newly try out TurboGears, you should use 2.2 instead of 2.1.

It didn't work with the paste server because of how my school's virtual
network is setup. This is why I switched to mod_wsgi and apache.

This should always work at least with the loopback interface (127.0.0.1), no matter which network. The usual way is to develop and test an application locally with the paste server. Only then you make the next step and deploy it via mod_wsgi. The recipes for mod_wsgi also usually assume production mode, so you will have less debugging info available (in terms of logs, tracebacks in the browser, debug bar).

The page display fine and everything. But when I clicked the save button
to call the method defined in root.py, it doesn't work properly. It
suppose to modify the page and redirects me back to /'pagename" but
instead it constantly redirects me back to "/save".

Redirects you back? If you click "save" you should be already there. It should store the page (does it do that?) and then redirect you.

I recommend you first try it out in development mode without mod_wsgi, and if that does not work, show us your save controller and logs/tracebacks if there are any errors.

-- Christoph

--
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