Computer scienceBackendFlaskApplication Architecture

Structuring the application

Round and Round it goes

Report a typo

Arrange the following lines of code in the initialization file __init__.py of a flask application package called pac in a manner which will avoid circular import with routes.py.

#routes.py

from pac import app

@app.route("/")
# ...
Put the items in the correct order
from pac import routes
app = Flask(__name__)
from flask import Flask
___

Create a free account to access the full topic