from flask import Flask
from flask import render_template

app = Flask(__name__)

@app.route('/', defaults={'path': ''})
@app.route('/<path:path>')
def application(path):
    return render_template('application.html')

if __name__ == '__main__':
    app.run(host='0.0.0.0', debug=True)

from flask import Flask
from flask import render_template

app = Flask(__name__)

@app.route('/login')
def login():
    return "LOGIN!"

@app.route('/logout')
def logout():
    return "LOGOUT!"

@app.route('/', defaults={'path': ''})
@app.route('/<path:path>')
def application(path):
    return render_template('application.html')

if __name__ == '__main__':
    app.run(host='0.0.0.0', debug=True)

Add login and logout stubs