Module Expr Str ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Str Assign NameStore Num Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore Str decorator_list
N/A N/A 
Flask-MarcoPolo

config.py

This module contains config for different environment

Each class based on BaseConf is a different set of configuration for an active environment

For more config options: http://flask.pocoo.org/docs/0.10/config/

- How to use:

It's best to have a mechanism to differentiate dev from prod from staging etc

project_env = "Dev"

my_project = MarcoPolo.init(Flask(__name__), config="project_name.config.%s" % project_env)

 BaseConf N/A object N/A N/A 
    Base config
     N/A DEBUG True N/A SECRET_KEY None N/A SERVER_NAME None N/A ASSETS_DEBUG False N/A FLASK_ASSETS_USE_S3 False N/A FLASK_ASSETS_USE_CDN False N/A MAIL_SERVER localhost N/A MAIL_PORT 25 N/A MAIL_USE_TLS False N/A MAIL_USE_SSL False N/A MAIL_DEBUG False N/A MAIL_USERNAME None N/A MAIL_PASSWORD None N/A MAIL_DEFAULT_SENDER None N/A MAIL_MAX_EMAILS None N/A MAIL_ASCII_ATTACHMENTS False N/A SQLALCHEMY_DATABASE_URI None N/A Prod N/A BaseConf N/A N/A  Production configuration  N/A DEBUG False N/A Dev N/A BaseConf N/A N/A  Development configuration  N/A DEBUG True N/A SECRET_KEY PLEASE_CHANGE_SECRET_KEY N/A