here i have this little example snippet and it just wont serve index.html from www dir. what is wrong with the code?
from twisted.internet import reactor
from twisted.web import static, server, script
import os
DIRECTORY = os.getcwd()+"/www"
root = static.File(DIRECTORY)
root.indexNames = [ 'index.rpy', 'index.html' ]
root.processors = { '.rpy': script.ResourceScript }
site = server.Site(root)
reactor.listenTCP(8090, site)
reactor.run()
all i get is 'No Such Resource' message. Is there any way to set up logging or something to figure this out?