#! /usr/bin/env python
# -*- coding: utf-8 -*-
"""Primary setup for PyTips."""
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import absolute_import
from __future__ import division


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


app = Flask(__name__)
heroku = Heroku(app)
if not app.config['SQLALCHEMY_DATABASE_URI']:
    app.config.from_object('pytips.default_settings')
db = SQLAlchemy(app)


# I'm about to import a module that I won't use explicitly; when it loads, the
# model definitions created, so you *must* leave the import in place. Also, it
# relies on `db` being already configured, so don't import it before everything
# is all set up.
from pytips import models
if app.config['SQLALCHEMY_DATABASE_URI'] == 'sqlite://':
    db.create_all()
# I'm about to import a module that I won't use explicitly; when it loads, the
# routes for the app will be defined, so you *must* leave the import in place.
# Also, it relies on `app` being already configured, so don't import it before
# everything is all set up.
from pytips import views


if __name__ == '__main__':
    app.run()

#! /usr/bin/env python
# -*- coding: utf-8 -*-
"""Primary setup for PyTips."""
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import absolute_import
from __future__ import division


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


app = Flask(__name__)
heroku = Heroku(app)
if not app.config['SQLALCHEMY_DATABASE_URI']:
    app.config.from_object('pytips.default_settings')
db = SQLAlchemy(app)


# I'm about to import a module that I won't use explicitly; when it loads, the
# model definitions created, so you *must* leave the import in place. Also, it
# relies on `db` being already configured, so don't import it before everything
# is all set up.
from pytips import models
if app.config['SQLALCHEMY_DATABASE_URI'] == 'sqlite://':
    db.create_all()
# I'm about to import a module that I won't use explicitly; when it loads, the
# routes for the app will be defined, so you *must* leave the import in place.
# Also, it relies on `app` being already configured, so don't import it before
# everything is all set up.
from pytips import views


if __name__ == '__main__':
    app.run()

#! /usr/bin/env python # -*- coding: utf-8 -*- Primary setup for PyTips. # I'm about to import a module that I won't use explicitly; when it loads, the # model definitions created, so you *must* leave the import in place. Also, it # relies on `db` being already configured, so don't import it before everything # is all set up. # I'm about to import a module that I won't use explicitly; when it loads, the # routes for the app will be defined, so you *must* leave the import in place. # Also, it relies on `app` being already configured, so don't import it before # everything is all set up.