Posts

Showing posts with the label route

"Hello World" Vanilla : Python with Bottle framework

=> Python is programming language and it's unique look as follow Readable Garbage collection handled  Scripting language Dynamic typing  Easy to code and faster development  .... http://www.python.org/ => Bottle is Python's well known Web Framework and it's unite thing as follow Faster Simple Lightweight ... http://bottlepy.org/docs/dev/ My Simple "Hello World" example with Python Web framework bottle # include bottle web framework import bottle   # create root url route   @bottle.route('/') #create function name home_page   def home_page():     return " Hello World Hello World " #create route url "/testpage"   @bottle.route('/testpage') def test_page():     return "this is the test page" #Enable the bottle in debug mode   bottle.debug(True) #listening the server. define host name and port no    bottle.run(host='localhost',port=8080) Help me, How can i run above si...