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'%  form.name
		return render.index(greeting = greeting)
			
if  __name__ == '__main__':
	app.run()

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

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

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

Those are the codes which I typed from lpthw book but on running it using bin\app.py, 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 app.py 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.

Is there a video to watch? where it is?

Yes, message me here and tell me where you bought the book and I can help you get them.

I didn’t buy the book, just borrowed the book from Library.

Great, email me at help@learncodethehardway.org and I’ll send you instructions.