__init__.py

About this file

Blueprints are used in Flask to maintain a large and scalable application.
This file helps in creating an admin interface accessible to only a subset of users (users with an admin role).
All the view functions (the ones with a route() decorator on top) have to be imported in the __init__.py file.

Code Check Report


app/admin/__init__.py:5:1: E402 module level import not at top of file
app/admin/__init__.py:5:1: F401 '.views' imported but unused
                        

Documentation drawn from source code

Source code