loading

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.9539163078403579","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"ZnJvbSBmbGFzayBpbXBvcnQgRmxhc2sKYXBwID0gRmxhc2soX19uYW1lX18pCkBhcHAucm91dGUoJy8nKQpkZWYgaGVsbG9fd29ybGQoKToKICAjIExpbmsgdG8gdGVzdCBwYWdlCiAgcmV0dXJuICdUbyBzZWUgdGhlIHRlc3Qgcm91dGUgZ28gdG8gL3Rlc3QnCkBhcHAucm91dGUoJy90ZXN0JykKZGVmIHRlc3RpbmcoKToKICByZXR1cm4gJ1lvdSBnb3QgdG8gdGhlIHRlc3Rpbmcgcm91dGUhJwppZiBfX25hbWVfXyA9PSAnX19tYWluX18nOgogIGFwcC5ydW4oaG9zdD0nMC4wLjAuMCcp"},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world():
  # Link to test page
  return 'To see the test route go to /test'
@app.route('/test')
def testing():
  return 'You got to the testing route!'
if __name__ == '__main__':
  app.run(host='0.0.0.0')