title: Integrate a Dash app with a route into a proper running Flask environment
body: <p>I'm struggling a bit with integrating a proper running Dash app inside a Flask website. Either I do have a problem in understanding howit works or it's only a small issue.<br />
  Each hint is welcome.</p>
  <ul>
  <li>My Flask environment has this route:</li>
  </ul>
  <pre><code>@blueprint.route('/dash-test')
  @login_required
  def dash_test():
      &quot;&quot;&quot;Integrate the Dash App into the page&quot;&quot;&quot;
      server = flask.Flask(__name__)
      return render_template('dashapp-test.html',
                             my_dashapp=my_dash_app(),
                             server=server
                             )
  </code></pre>
  <ul>
  <li>It's calling the function which contains the Dash app:</li>
  </ul>
  <pre><code>def my_dash_app():
  
      app = dash.Dash(
          __name__,
          external_stylesheets=['https://codepen.io/chriddyp/pen/bWLwgP.css'],
      )
  
      app.layout = html.Div(id='example-div-element')
      return app
  </code></pre>
  <ul>
  <li>Given result after send the request /dash-test:</li>
  </ul>
  <p><em>&lt;dash.dash.Dash object at 0x0000025909864700&gt;</em></p>
  <p>But expected is: Dash App is shown.</p>