Ejemplo n.º 1
0
def initdb():
    """ Init db"""

    try:
        db.create_tables([User])
    except Exception, e:
        print "Unexpected error: %s" % e
Ejemplo n.º 2
0
def initdb():
    """ Init db"""

    try:
        db.create_tables([User])
    except:
        print "Can't create a database."