def setupDB():
    print "Creating database"
    db.create_all()
    app.testLoadFunction()
Example #2
0
from talent_match import app, db
from config import basedir
import os.path
import logging

logger = logging.getLogger(__name__)

if __name__ == "__main__":
    # Create the db if it doesn't exist
    if not os.path.exists(os.path.join(basedir, 'talent-match.db')):
        logger.info("Creating database...")
        db.create_all()

    app.testLoadFunction()

    app.run(debug=True)