old_contents: import dotenv
  
  
  dotenv.read_dotenv()
  
  from flask.ext.script import Manager, prompt_bool
  from soundem import app, db, fixtures
  
  
  manager = Manager(app)
  
  
  @manager.command
  def recreate_db():
      """
      Recreates database tables
      """
      if prompt_bool("Do you want to drop existing data?"):
          print "Dropping..."
          db.drop_all()
  
      print "Creating..."
      db.create_all()
  
  
  @manager.command
  def populate_db():
      """
      Populates database with sample data
      """
      recreate_db()
  
      print "Populating..."
  
      fixtures.sample()
  
  
  if __name__ == '__main__':
      manager.run()
  
new_contents: import dotenv
  
  
  dotenv.read_dotenv()
  
  from flask.ext.script import Manager, prompt, prompt_bool, prompt_pass
  from soundem import app, db, fixtures
  from soundem.models import User
  
  
  manager = Manager(app)
  
  
  @manager.command
  def recreate_db():
      """
      Recreates database tables
      """
      if prompt_bool("Do you want to drop existing data?"):
          print "Dropping..."
          db.drop_all()
  
      print "Creating..."
      db.create_all()
  
  
  @manager.command
  def populate_db():
      """
      Populates database with sample data
      """
      recreate_db()
  
      print "Populating..."
  
      fixtures.sample()
  
  
  @manager.command
  def create_user():
      email = prompt('Email address')
      password = prompt_pass('Password')
  
      try:
          print "Creating user..."
          User.create(email, password)
      except:
          print "Error creating user!"
  
  
  if __name__ == '__main__':
      manager.run()
  
subject: Add management command to create users