MCPcopy Create free account
hub / github.com/ndleah/python-mini-project / create_app

Function create_app

website-builder/app/__init__.py:6–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4
5
6def create_app():
7 app = Flask(__name__)
8
9 # Choose the configuration based on your environment
10 app.config.from_object(DevelopmentConfig) # For development environment
11 # Uncomment the line below for production environment
12 app.config.from_object(ProductionConfig)
13
14 # Register the blueprint
15 app.register_blueprint(portfolio_routes.portfolio_bp,
16 url_prefix='/portfolio')
17
18 # Other app configuration and routes...
19
20 return app

Callers 1

run.pyFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected