Grouped bar chart doesn't work in Django dash

import dash
from django_plotly_dash import DjangoDash
import dash_core_components as dcc
import dash_html_components as html
import as px
import pandas as pd

external_stylesheets = ['']

app = DjangoDash('app1', external_stylesheets=external_stylesheets)

# assume you have a "wide-form" data frame with no index
# see for more options
df = pd.DataFrame({"x": [1, 2, 3], "SF": [4, 1, 2], "Montreal": [2, 4, 5]})

fig =, x="x", y=["SF", "Montreal"], barmode="group")

app.layout = html.Div(children=[
    html.H1(children='Hello Dash'),

        Dash: A web application framework for Python.


This is my code and instead of dash,I used djangodash.It shows an error