title: django-plotly-dash serve css files locally
body: <p>I am trying to serve css files locally in a DjangoDash app using django-plotly-dash.</p>
  
  <p>Simpleexample.py</p>
  
  <pre><code>app = DjangoDash('SimpleExample', serve_locally=True)
  app.css.append_css("path_to_css")
  app.layout = html.Div([
      html.Div(
          className="app-header",
          children=[
              html.Div('Plotly Dash', className="app-header--title")
          ]
      ),
      html.Div(
          children=html.Div([
              html.H5('Overview'),
              html.Div('''
                  This is an example of a simple Dash app with
                  local, customized CSS.
              ''')
          ])
      )
  ])
  </code></pre>
  
  <p>simpleexample.html</p>
  
  <pre><code>{% extends 'base.html' %}
  {% load static %}
  {% block content %}
  {% load plotly_dash %}
  
      {% plotly_app name='SimpleExample' ratio=0.45 %}
      &lt;/div&gt;
  
  {% endblock %}
  </code></pre>
  
  <p>header.css and topography.css are the files as described here: <a href="https://dash.plotly.com/external-resources" rel="nofollow noreferrer">https://dash.plotly.com/external-resources</a>.</p>
  
  <p>According to these: <a href="https://github.com/GibbsConsulting/django-plotly-dash/issues/121" rel="nofollow noreferrer">https://github.com/GibbsConsulting/django-plotly-dash/issues/121</a> and <a href="https://github.com/GibbsConsulting/django-plotly-dash/issues/133" rel="nofollow noreferrer">https://github.com/GibbsConsulting/django-plotly-dash/issues/133</a>, the issues regarding this should be fixed.</p>
  
  <p>However the css styling does not render--</p>
  
  <p><a href="https://i.stack.imgur.com/7EDB6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7EDB6.png" alt="browser image"></a></p>
  
  <p>What am I missing here? There was a suggestion in the above github issues that we can use django template rather than iframe. I could not find much documentation on that -- can anyone point me there?    </p>
  
  <p>Thank you.</p>