Model does not exist error

I have django bokeh project and I’m trying to add dateRangePicker slider but I get error in console

bokeh-0.12.16.min.js:1 Uncaught Error: Model 'DateRangeSlider' does not exist. This could be due to a widget
or a custom model not being registered before first usage.

This is code for that.

date_range_slider = DateRangeSlider(title="Date Range: ", start='2018-01-02', end='2018-06-09',
                                    value=('2018-06-02', '2018-06-09'), step=1)

# l = layout(children=[[date_range_slider]], sizing_mode='fixed')

l = layout(children=[[p], [date_range_slider]], sizing_mode='fixed')
script, div = components(l)
print(div)

return render(request, 'index.html', {"the_script": script, "the_div": div})

Do I need to add anything in django model?

Answered here:

  https://stackoverflow.com/questions/50939263/bokeh-model-does-not-exist/50942887#50942887

Please refrain from asking the same question multiple times in multiple posts on this mailing list. It creates a stressful burden for those donating their time to answer.

Thanks,

Bryan

···

On Jun 19, 2018, at 19:18, bleedblue <[email protected]> wrote:

I have django bokeh project and I'm trying to add dateRangePicker slider but I get error in console

bokeh-0.12.16.min.js:1 Uncaught Error: Model 'DateRangeSlider' does not exist. This
could be due to a widget
                     
or a custom model not being registered before first usage.

This is code for that.

date_range_slider = DateRangeSlider(title="Date Range: ", start='2018-01-02', end='2018-06-09',

                                    value
=('2018-06-02', '2018-06-09'), step=1)

# l = layout(children=[[date_range_slider]], sizing_mode='fixed')

l
= layout(children=[[p], [date_range_slider]], sizing_mode='fixed')

script
, div = components(l)
print(div)

return render(request, 'index.html', {"the_script": script, "the_div": div})

Do I need to add anything in django model?

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to b[email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/c270d60b-a2b4-480e-98f2-e6c35aa80bb4%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.