How can you configure a Flask application to use an external configuration file?

  • a. Define configuration settings directly in your Flask app's main Python file.
  • b. Create a separate Python module with configuration settings and import it into your Flask app.
  • c. Use environment variables for configuration.
  • d. Flask doesn't support external configuration files.
You can configure a Flask application to use an external configuration file by creating a separate Python module with configuration settings and importing it into your Flask app. This allows for better separation of concerns and easier configuration management. Options a, c, and d are not recommended practices.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *