Start_loading_spinner and stop_loading_spinner working on panel but not when embedding in Django

Hello,

I have developed a panel app with start_loading_spinner and it is working when running “python -m MyAppName.py”. However when I run my panel app inside Django (python manage.py runserver 0:8000) everything works fine as before but any of the spinners show in the app.
Does anybody know if this is a Panel/Django integration issue or what problem is behind this?

Thanks in advance.

By the way, I am running on Linux and my relevant libraries with its versions are:

bokeh 2.3.3
channels 2.4.0
daphne 2.5.0
django 3.0.3
panel 0.12.1
param 1.11.1