ich hatte folgendes Problem:
Code: Alles auswählen
def _any_page(req, name):
template=psp.PSP(req, 'templates/kopf.html')
template=template + psp.PSP(req, name)
template=template + psp.PSP(req, 'templates/fuss.html')
return template
TypeError: unsupported operand type(s) for +: 'instance' and 'instance'
Daraufhin machte ich es so und es funktioniert:
Code: Alles auswählen
def _any_page(req, name):
template=psp.PSP(req, 'templates/kopf.html')
template=str(template) + str(psp.PSP(req, name))
template=str(template) + str(psp.PSP(req, 'templates/fuss.html'))
return template
Danke
Stolzi