()
| 4 | |
| 5 | |
| 6 | def 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 |