From ex51, error from form

import web

urls = (
	' /hello ', ' Index '
app = web.application(urls, globals())
render = web.template.render('templates/')
class Index(object):
	def GET(self):
		form = web.input(name = 'Nobody' )
		greeting = 'Hello, %s'%
		return render.index(greeting = greeting)
if  __name__ == '__main__':

and -----------------

$def with (greeting)
		<title>Gothons Of Planet Percal #25</title>

$if greeting:
	I just wanted to say <em style="color:green; font-size: 2em;">$greeting</em>.

Those are the codes which I typed from lpthw book but on running it using bin\, the browser and cmd line output i always get is “not found”. I’ve altered and tried changing the port but the problem is still persistent.


I am also having issues with ex51 related to template errors. Can you share the specific error messages, as well as your complete code for and layout.html? It looks like your code is very different from what was posted in ex51.


Have you watched the video and copied what I do exactly? Check it out because I think it’s just that you’re putting files in the wrong place or doing a cd into a directory you should not.