Last active
          February 26, 2018 12:30 
        
      - 
      
- 
        Save fmasanori/5922929 to your computer and use it in GitHub Desktop. 
    Tutorial bottle 01
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import bottle | |
| #this is the handler for the root address on the web browser | |
| @bottle.route('/') | |
| def home_page(): | |
| return 'Hello Bottle World\n' | |
| @bottle.route('/testpage') | |
| def test_page(): | |
| return 'Oficina MongoDB e Python no FISL' | |
| bottle.debug(True) | |
| bottle.run(host='localhost', port = 8082) | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment