Guest User

Untitled

a guest
Jun 22nd, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. @app.route('/')
  2. def index():
  3. ......
  4.  
  5. @app.route('app1')
  6. def app1():
  7. ......
  8. return render_template('app1.html')
  9.  
  10. @app.route('app2')
  11. def app1():
  12. ......
  13. return render_template('app2.html')
  14.  
  15. ......
  16.  
  17. app = Flask(__name__)
  18.  
  19. if __name__ == "__main__":
  20. app.run()
  21.  
  22. app = Flask(__name__)
  23. app.config['SECRET_KEY'] = 'secret!'
  24. socketio = SocketIO(app)
  25.  
  26. if __name__ == '__main__':
  27. socketio.run(app)
Add Comment
Please, Sign In to add comment