from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy


app = Flask(__name__)
app.config.from_object('carson.default_settings')

db = SQLAlchemy(app)

from . import api
from . import models

from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy


app = Flask(__name__)
app.config.from_object('carson.default_settings')
app.config.from_envvar('CARSON_SETTINGS', silent=True)

db = SQLAlchemy(app)

from . import api
from . import models

Allow overwriting of config from envvar
Allow overwriting of config from envvar

  from flask import Flask
  from flask.ext.sqlalchemy import SQLAlchemy
  
  
  app = Flask(__name__)
  app.config.from_object('carson.default_settings')
+ app.config.from_envvar('CARSON_SETTINGS', silent=True)
  
  db = SQLAlchemy(app)
  
  from . import api
  from . import models
  
Allow overwriting of config from envvar
## Code Before:
from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy


app = Flask(__name__)
app.config.from_object('carson.default_settings')

db = SQLAlchemy(app)

from . import api
from . import models

## Instruction:
Allow overwriting of config from envvar
## Code After:
from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy


app = Flask(__name__)
app.config.from_object('carson.default_settings')
app.config.from_envvar('CARSON_SETTINGS', silent=True)

db = SQLAlchemy(app)

from . import api
from . import models
