Add panel app to django 3

I can easily add bokeh app to django 3 with something like:

from bokeh.plotting import figure
from bokeh.embed import components

plot = figure()
plot.circle([1,2], [3,4])

script, div = components(plot)

as they mentioned here

but when I try to add panel object to components and then ad it to render, it doesn’t work

import plotly.express as px
from bokeh.embed import components
import panel as pn
import param as pm

pn_objects = pn.Row(some ploylt_plot & some param and panel widgets)

script, div = components(pn_objects )

Please let me know what is the straight forward way to implement panel apps in django
Thank you