title: FastAPI throws an error (Error loading ASGI app. Could not import module "api")
body: <p>I tried to run FastAPI using uvicorn webserver but it throws an error.</p>
  <p>I run this command,</p>
  <pre><code>uvicorn api:app --reload --host 0.0.0.0
  </code></pre>
  <p>but there is an error in the terminal.</p>
  <pre><code>Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
  Started reloader process [23445]
  Error loading ASGI app. Could not import module &quot;api&quot;.
  Stopping reloader process [23445]
  </code></pre>