Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Plain Text by root.py ( 13 years ago )
from bottle import route, run, template
from bottle import error
@route('/')
def anasayfa():
return """<title>Bottle Web Framework</title>
<em>Bu framework super</em> <- Bu em yataylastiriyormus</br>
<b>Ben bu framework'e bayildim acikcasi</b></br>
<a href='hakkimda'>Hakkimda</a> Sayfasina Bakin Derim
"""
@route('/<api>/<uye>')
def api_uye(api,uye):
return """<title>Api Dagitim Seysi</title>
Veri nayz. Ben belki buradan api falan neyim dagitirim.
"""
@route('/hakkimda')
def hakkimda():
return "Merhaba artik 404 eror vermicem"
@error(404)
def error404(error):
return """
Naptin haci sen? Bende olmayan ve olmayacak bir sayfayi
acmaya kalktin. Sen hayirdir ya?
"""
run(host='localhost', port=80, reloader=True)
Revise this Paste