SHARE
TWEET

Untitled

a guest Jun 19th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from flask import Flask
  2. from config import DevConfig
  3.  
  4.  app = Flask(__name__)
  5.  app.config.from_object(DevConfig)
  6.  print(DevConfig.DEBUG)
  7.  @app.route('/')
  8.  def home():
  9.     return '<h1>Hello World</h1>'
  10.  
  11.  if __name__ == '__main__':
  12.       app.run()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top