Multi page app in django using panel

Related to this page:
https://panel.holoviz.org/user_guide/Django_Apps.html
I want to know how can I have two or more function in app file like:

import panel as pn

from .sinewave import SineWave

def app(doc):
    sw = SineWave()
    row = pn.Row(sw.param, sw.plot)
    row.server_doc(doc)

def app_2(doc):
    sw = SineWave()
    row = pn.Row(sw.param, sw.plot)
    row.server_doc(doc)

def app_3(doc):
    sw = SineWave()
    row = pn.Row(sw.param, sw.plot)
    row.server_doc(doc)

and how can I add them to separate tabs in one template like:

<!DOCTYPE html>
<html>
  <head>
    <title>Panel in Django: sliders</title>
  </head>
  <body>
<tab1>
  {% block content %}
    {{ script-part-1|safe }}	  
  {% endblock %}
<tab2>
  {% block content %}
    {{ script-part-2|safe }}	  
  {% endblock %}
<tab2>
  {% block content %}
    {{ script-part-2|safe }}	  
  {% endblock %}
  </body>
</html>

Hi @bigsmile

You can provide server-path in-place of using request.build_absolute_uri() function in sliders → views.py file.

        def sliders(request: HttpRequest) -> HttpResponse:
            script = server_document("http://localhost:5000/path1")
            script1 = server_document("http://localhost:5000/path2")
            return render(request, "base.html", dict(script=script, script1=script1))