old_contents: import os
  
  from flask import Flask
  from flask.ext.sqlalchemy import SQLAlchemy
  
  basedir = os.path.abspath(os.path.dirname(__file__))
  
  app = Flask(__name__)
  app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///' + os.path.join(basedir, 'app.db')
  app.secret_key = 'wahoowa'
  db = SQLAlchemy(app)
  
  from app import models
  from app import views
  
  db.create_all()
  
new_contents: import os
  
  from flask import Flask
  from flask.ext.sqlalchemy import SQLAlchemy
  
  basedir = os.path.abspath(os.path.dirname(__file__))
  
  app = Flask(__name__)
  if os.environ.get('DATABASE_URL') is None:
      app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///' + os.path.join(basedir, 'app.db')
  else:
      app.config['SQLALCHEMY_DATABASE_URI'] = os.environ['DATABASE_URL']
  app.secret_key = 'wahoowa'
  db = SQLAlchemy(app)
  
  from app import models
  from app import views
  
  db.create_all()
  
subject: Add support for postgres