We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
panel/examples/apps/django2/ example doesn't work
The django2 example doesn't work at least for Django 2.2. The interactive plot doesn't show up and there are no clear error messages either. However, the same example provided by ParamBokeh works fine. But I prefer Panel if this problem can be solved. 

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `examples/apps/django2/sliders/bk_sliders.py`
Content:
```
1 import panel as pn
2 
3 from .sinewave import SineWave
4 
5 def app(doc):
6     sw = SineWave()
7     row = pn.Row(sw.param, sw.plot)
8     row._get_root(doc)
9
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/examples/apps/django2/sliders/bk_sliders.py b/examples/apps/django2/sliders/bk_sliders.py
--- a/examples/apps/django2/sliders/bk_sliders.py
+++ b/examples/apps/django2/sliders/bk_sliders.py
@@ -5,4 +5,4 @@
 def app(doc):
     sw = SineWave()
     row = pn.Row(sw.param, sw.plot)
-    row._get_root(doc)
+    row.server_doc(doc)

{"golden_diff": "diff --git a/examples/apps/django2/sliders/bk_sliders.py b/examples/apps/django2/sliders/bk_sliders.py\n--- a/examples/apps/django2/sliders/bk_sliders.py\n+++ b/examples/apps/django2/sliders/bk_sliders.py\n@@ -5,4 +5,4 @@\n def app(doc):\n     sw = SineWave()\n     row = pn.Row(sw.param, sw.plot)\n-    row._get_root(doc)\n+    row.server_doc(doc)\n", "issue": "panel/examples/apps/django2/ example doesn't work\nThe django2 example doesn't work at least for Django 2.2. The interactive plot doesn't show up and there are no clear error messages either. However, the same example provided by ParamBokeh works fine. But I prefer Panel if this problem can be solved. \n", "before_files": [{"content": "import panel as pn\n\nfrom .sinewave import SineWave\n\ndef app(doc):\n    sw = SineWave()\n    row = pn.Row(sw.param, sw.plot)\n    row._get_root(doc)\n", "path": "examples/apps/django2/sliders/bk_sliders.py"}], "after_files": [{"content": "import panel as pn\n\nfrom .sinewave import SineWave\n\ndef app(doc):\n    sw = SineWave()\n    row = pn.Row(sw.param, sw.plot)\n    row.server_doc(doc)\n", "path": "examples/apps/django2/sliders/bk_sliders.py"}]}