docs: def webui(cmd, hostport='127.0.0.1:8800', skip_browser=False):
      """
      start the webui server in foreground or perform other operation on the
      django application
      """
      dbpath = os.path.realpath(os.path.expanduser(config.dbserver.file))
      if os.path.isfile(dbpath) and not os.access(dbpath, os.W_OK):
          sys.exit('This command must be run by the proper user: '
                   'see the documentation for details')
      if cmd == 'start':
          dbserver.ensure_on()  # start the dbserver in a subprocess
          rundjango('runserver', hostport, skip_browser)
      elif cmd in commands:
          rundjango(cmd)