def initdb(): db.create_all() db.session.add(User(username="******", email="*****@*****.**", password="******")) db.session.add(User(username="******", email="*****@*****.**", password="******")) db.session.add(User(username="******", email="*****@*****.**", password="******")) db.session.commit() print 'Initialized the database'
def initdb(): db.create_all() db.session.add( User(username='******', email='*****@*****.**', password='******')) db.session.add(User(username='******', email='*****@*****.**', password='******')) db.session.commit() print 'Initialized Database'
def initdb(): db.create_all() db.session.add(User(username="******", email="*****@*****.**")) db.session.add( User(username="******", email="*****@*****.**")) db.session.commit() print "Initialized the database"
def initdb(): db.create_all() db.session.add( User(username="******", email='*****@*****.**', password='******')) db.session.add( User(username="******", email='*****@*****.**', password='******')) db.session.commit() print 'Initialzed the database'
def initdb(): db.create_all() db.session.add( User(username='******', email='*****@*****.**', password='******')) db.session.add( User(username='******', email='*****@*****.**', password='******')) db.session.commit() print 'Initialized the database'
def init_db(): db.create_all() db.session.add(Bookmark(url="http://goole.com", description="dbuabda")) db.session.add(Bookmark(url="http://mama.com", description="dbudeddabda")) db.session.commit() print("Initialized the database")
def initdb(): db.create_all() db.session.add( User(username="******", email="*****@*****.**", password="******")) db.session.add( User(username="******", email="*****@*****.**", password="******")) db.session.commit() print 'Initialized the database'
def initdb(): db.create_all() db.session.add( User(username='******', email='*****@*****.**', password='******')) db.session.add( User(username='******', email='*****@*****.**', password='******')) db.session.commit() print('Initialized the database')
def initdb(): db.create_all() db.session.add( User(username="******", email="*****@*****.**", password="******")) db.session.add( User(username="******", email="*****@*****.**", password="******")) db.session.commit() print('initialized the database')
def initdb(): db.create_all() db.session.add( User(username="******", email="*****@*****.**", password="******")) db.session.add( User(username="******", email="*****@*****.**", password="******")) db.session.commit() print('Initialized the database')
def insert_data(): """ creates database """ db.create_all() zubidlo = User(username='******', email='*****@*****.**', password="******") db.session.add(zubidlo) def add_bookmark(url, description, tags): db.session.add(Bookmark(url=url, description=description, user=zubidlo, tags=tags)) for name in ['python', 'flask', 'programming']: db.session.add(Tag(name=name)) add_bookmark("http://www.pluralsight.com", "Hardcore development traininng.", "programming") add_bookmark("http://www.python.org", "My favourite language", "python") add_bookmark("http://www.flask.pocaa.org", "Web development", "flask") db.session.commit() print "inserted the data"
def initdb(): db.create_all() print('Initialized the database')
def initdb(): db.create_all() db.session.add(User(username="******", email="*****@*****.**")) db.session.commit() print("Initialized the database")
def initdb(): db.create_all() db.session.add(User(username='******', email='*****@*****.**')) db.session.add(User(username='******', email='*****@*****.**')) db.session.commit() print 'Initialized the database!'
def initdb(): db.create_all() db.session.add(User(username="******", email="*****@*****.**", password="******")) db.session.add(User(username="******", email="*****@*****.**", password="******")) db.session.commit() print('initialized the database')
def create_db(): print("Creating database...") db.create_all() db.session.add(User(username='******', email='*****@*****.**')) db.session.add(User(username='******', email='*****@*****.**')) db.session.commit()
def initdb(): db.create_all() db.session.add(User(username="******", email="*****@*****.**")) db.session.add(User(username="******", email="*****@*****.**")) db.session.commit() print "Initialized the database"
def initdb(): db.create_all() db.session.add(User(username="******", email="*****@*****.**")) db.session.commit() print('Initialized Database.')
def initdb(): db.create_all() db.session.add(User(username="******", email="*****@*****.**", password="******")) db.session.add(User(username="******", email="*****@*****.**", password="******")) db.session.commit() print("Initialized database")
def initdb(): db.create_all() db.session.add(User(username="******", email="*****@*****.**")) db.session.commit() print 'Initialized the database'
def initdb(): db.create_all() db.session.add(User(username="******", email="*****@*****.**")) db.session.add(User(username="******", email="*****@*****.**")) db.session.commit() print("Database initialized")
def initdb(): db.create_all() db.session.add(User(username="******", email="*****@*****.**")) db.session.add(User(username="******", email="*****@*****.**")) db.session.commit() print "Initalized the database."
def initdb(): db.create_all() db.session.add(User(username="******",email="*****@*****.**", password='******')) db.session.add(User(username="******",email="*****@*****.**", password='******')) db.session.commit() print 'Init DB'