#!/usr/bin/env python

import datetime

from flask import Flask, render_template

import app_config

app = Flask(app_config.PROJECT_NAME)


# Example application views
@app.route('/%s/' % app_config.PROJECT_SLUG)
def _dynamic_page():
    """
    Example dynamic view demonstrating rendering a simple HTML page.
    """
    return datetime.datetime.now().isoformat()


if __name__ == '__main__':
    app.run(host='0.0.0.0', port=8000, debug=app_config.DEBUG)

#!/usr/bin/env python

import datetime

from flask import Flask

import app_config

app = Flask(app_config.PROJECT_NAME)

@app.route('/%s/test/' % app_config.PROJECT_SLUG, methods=['GET'])
def _test_app():
    """
    Test route for verifying the application is running.
    """
    return datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')

if __name__ == '__main__':
    app.run(host='0.0.0.0', port=8000, debug=app_config.DEBUG)

Add test route to public_app.py. #194.