#!/usr/bin/python3

'''script that starts a Flask web application
'''

from flask import Flask, render_template
from models import storage

app = Flask(__name__)
app.url_map.strict_slashes = False


@app.teardown_appcontext
def current_remove(self):
    """
    request you must remove the current SQLAlchemy Session
    """
    storage.close()


@app.route('/states')
@app.route('/states/<id>')
def print_state(id=None):
    """
    display a HTML page
    """
    data = storage.all("State")
    return render_template('9-states.html', states=data, id=id)


if __name__ == "__main__":
    app.run(host='0.0.0.0', port='5000')

8704854fb1cb8d78ce4b3389d90a28faafd0d6ac
<mask token>


@app.teardown_appcontext
def current_remove(self):
    """
    request you must remove the current SQLAlchemy Session
    """
    storage.close()


@app.route('/states')
@app.route('/states/<id>')
def print_state(id=None):
    """
    display a HTML page
    """
    data = storage.all('State')
    return render_template('9-states.html', states=data, id=id)


<mask token>

<mask token>


@app.teardown_appcontext
def current_remove(self):
    """
    request you must remove the current SQLAlchemy Session
    """
    storage.close()


@app.route('/states')
@app.route('/states/<id>')
def print_state(id=None):
    """
    display a HTML page
    """
    data = storage.all('State')
    return render_template('9-states.html', states=data, id=id)


if __name__ == '__main__':
    app.run(host='0.0.0.0', port='5000')

<mask token>
app = Flask(__name__)
app.url_map.strict_slashes = False


@app.teardown_appcontext
def current_remove(self):
    """
    request you must remove the current SQLAlchemy Session
    """
    storage.close()


@app.route('/states')
@app.route('/states/<id>')
def print_state(id=None):
    """
    display a HTML page
    """
    data = storage.all('State')
    return render_template('9-states.html', states=data, id=id)


if __name__ == '__main__':
    app.run(host='0.0.0.0', port='5000')

<mask token>
from flask import Flask, render_template
from models import storage
app = Flask(__name__)
app.url_map.strict_slashes = False


@app.teardown_appcontext
def current_remove(self):
    """
    request you must remove the current SQLAlchemy Session
    """
    storage.close()


@app.route('/states')
@app.route('/states/<id>')
def print_state(id=None):
    """
    display a HTML page
    """
    data = storage.all('State')
    return render_template('9-states.html', states=data, id=id)


if __name__ == '__main__':
    app.run(host='0.0.0.0', port='5000')

#!/usr/bin/python3

'''script that starts a Flask web application
'''

from flask import Flask, render_template
from models import storage

app = Flask(__name__)
app.url_map.strict_slashes = False


@app.teardown_appcontext
def current_remove(self):
    """
    request you must remove the current SQLAlchemy Session
    """
    storage.close()


@app.route('/states')
@app.route('/states/<id>')
def print_state(id=None):
    """
    display a HTML page
    """
    data = storage.all("State")
    return render_template('9-states.html', states=data, id=id)


if __name__ == "__main__":
    app.run(host='0.0.0.0', port='5000')
