old_contents: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  
  from datetime import datetime
  from flask import Flask, request
  
  app = Flask(__name__)
  
  @app.route('/')
  def index():
      return 'Hello from Flask! (%s)' % datetime.now().strftime('%Y-%m-%d %H:%M:%S')
  
  @app.route('/github')
  def github():
      if request.method != 'POST':
          return 405
      with open('test', 'w') as f:
          f.write(request.get_json())
      return ':)'
  
new_contents: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  
  from datetime import datetime
  from flask import Flask, request
  
  app = Flask(__name__)
  app.debug = True
  
  
  @app.route('/')
  def index():
      return 'Hello from Flask! (%s)' % datetime.now().strftime('%Y-%m-%d %H:%M:%S')
  
  @app.route('/github')
  def github():
      if request.method != 'POST':
          return 'Not Allowed', 405
      with open('test', 'w') as f:
          f.write(request.get_json())
      return ':)'
  
  
  if __name__ == '__main__':
      app.run()
  
subject: Add debugging options by default