Ich habe Startschwierigkeiten mit bottle und bekommen immer einen: "Internal Server Error".
Vom Prinzip her probiere ich nur ein "Hello World!" Script von der bottle Dokumentation aus.
Code: Alles auswählen
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from bottle import route, run
@route('/')
def index():
return "Hello World!"
run(host='barfooz.de', port=80)
Code: Alles auswählen
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import cgitb
cgitb.enable()
print "Content-Type: text/html;charset=utf-8\n"
print "Hello World"

Gruß, deadshox