old_contents: import flask
  import config
  
  app = flask.Flask(__name__)
  
  
  @app.route('/')
  def index():
      return flask.render_template('dashboard.html')
  
  
  @app.route('/new')
  def new():
      return flask.render_template('new_procedure.html')
  
  
  @app.route('/sms', methods=['POST'])
  def receive_sms():
      print(str.format("Received SMS: \n"
                       "To: {0}\n"
                       "From: {1}\n"
                       "Body: {2}\n",
                       str(flask.request.form['To']),
                       str(flask.request.form['From']),
                       str(flask.request.form['Body'])))
      return '<Response></Response>'
  
  if __name__ == '__main__':
      app.debug = config.debug_mode
      print(str.format("Debug Mode is: {0}", app.debug))
      app.run()
  
new_contents: import flask
  import config
  
  app = flask.Flask(__name__)
  
  
  @app.route('/')
  @app.route('/dashboard')
  def render_dashboard():
      return flask.render_template('dashboard.html')
  
  
  @app.route('/new')
  def render_new_procedure_form():
      return flask.render_template('new_procedure.html')
  
  
  # Endpoint for new opportunity form submission
  @app.route('/opportunity', methods=['POST'])
  def new_opportunity():
      print(str.format(""))
      return flask.redirect(flask.url_for('new', code=201))
  
  
  # Endpoint for receiving SMS messages from Twilio
  @app.route('/sms', methods=['POST'])
  def receive_sms():
      print(str.format("Received SMS: \n"
                       "To: {0}\n"
                       "From: {1}\n"
                       "Body: {2}\n",
                       str(flask.request.form['To']),
                       str(flask.request.form['From']),
                       str(flask.request.form['Body'])))
      return '<Response></Response>'
  
  
  if __name__ == '__main__':
      app.debug = config.debug_mode
      print(str.format("Debug Mode is: {0}", app.debug))
      app.run()
  
subject: Add simple endpoint for form submission