[Twisted-Python] twisted web question

Philippe Lafoucrière lafou at wanadoo.fr
Tue Dec 16 09:33:59 EST 2003


I had this problem and pointed up to ml some weeks ago... No response for 
that. I just corrected it by using a TAP file instead of creating the 
application in my code.
Try :

==========================================================
mktap  web --resource-script=index.rpy
==========================================================

then start it with :


==========================================================
PYTHONPATH=$PYTHONPATH:$PWD/MyWovenPages twistd -nf web.tap
==========================================================

Here is my index.rpy file :

==========================================================
# This file is used for debug. It allows to reload the whole application
# and test changes directly.

import MyWovenPages


## Comment out this line when finished debugging
reload(MyWovenPages)

# We must have a 'resource'. We take the index page as the default resource.
resource = MyWovenPages.MyWovenPages_Index()
==========================================================

hope this helped

--
Philippe


On Tuesday 16 December 2003 00:12, Greg Lappen wrote:
> I am playing with some twisted-web and woven stuff.
>
> I noticed that whenever I get an error page, the server no longer
> handles requests.
>
> Is this the intended behavior?
>
> Greg
>
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python





More information about the Twisted-Python mailing list