Ive recently gotten into Webdesign in Python, I've tried multiple frameworks but web.py seems to be my favorite except for one problem. I cant seem to figure out how to make multiple pages with multiple templates....
here is my code so far:
import web urls = ( '/', 'index', '/login/', 'login' ) app = web.application(urls, globals()) render = web.template.render('templates/') class index(): def GET(self): return render.index() class login(): def GET(self): return render.login() if __name__ == '__main__': app.run()
I get an error when I try to go to the login page :/