prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  PWA does not respect orientation lock on Android
  
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `ephios/core/views/pwa.py`
  Content:
  ```
  1 import functools
  2 
  3 from django.conf import settings
  4 from django.contrib.staticfiles import finders
  5 from django.http import HttpResponse, JsonResponse
  6 from django.shortcuts import render
  7 from django.utils.translation import get_language
  8 
  9 
  10 def manifest(request):
  11     manifest_json = {
  12         "name": "ephios",
  13         "short_name": "ephios",
  14         "description": "ephios manages events for medical services",
  15         "start_url": "/",
  16         "display": "standalone",
  17         "scope": "/",
  18         "orientation": "any",
  19         "background_color": "#fff",
  20         "theme_color": "#000",
  21         "status_bar": "default",
  22         "dir": "auto",
  23         "icons": settings.PWA_APP_ICONS,
  24         "lang": get_language(),
  25     }
  26     response = JsonResponse(manifest_json)
  27     response["Service-Worker-Allowed"] = "/"
  28     return response
  29 
  30 
  31 @functools.lru_cache
  32 def serviceworker_js():
  33     with open(finders.find("ephios/js/serviceworker.js"), "rb") as sw_js:
  34         return sw_js.read()
  35 
  36 
  37 def serviceworker(request):
  38     return HttpResponse(
  39         serviceworker_js(),
  40         content_type="application/javascript",
  41     )
  42 
  43 
  44 def offline(request):
  45     return render(request, "offline.html")
  46
  ```
  --- 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()
  
  ```
  
golden_diff: diff --git a/ephios/core/views/pwa.py b/ephios/core/views/pwa.py
  --- a/ephios/core/views/pwa.py
  +++ b/ephios/core/views/pwa.py
  @@ -15,7 +15,6 @@
           "start_url": "/",
           "display": "standalone",
           "scope": "/",
  -        "orientation": "any",
           "background_color": "#fff",
           "theme_color": "#000",
           "status_bar": "default",
  
verification_info: {"golden_diff": "diff --git a/ephios/core/views/pwa.py b/ephios/core/views/pwa.py\n--- a/ephios/core/views/pwa.py\n+++ b/ephios/core/views/pwa.py\n@@ -15,7 +15,6 @@\n         \"start_url\": \"/\",\n         \"display\": \"standalone\",\n         \"scope\": \"/\",\n-        \"orientation\": \"any\",\n         \"background_color\": \"#fff\",\n         \"theme_color\": \"#000\",\n         \"status_bar\": \"default\",\n", "issue": "PWA does not respect orientation lock on Android\n\n", "before_files": [{"content": "import functools\n\nfrom django.conf import settings\nfrom django.contrib.staticfiles import finders\nfrom django.http import HttpResponse, JsonResponse\nfrom django.shortcuts import render\nfrom django.utils.translation import get_language\n\n\ndef manifest(request):\n    manifest_json = {\n        \"name\": \"ephios\",\n        \"short_name\": \"ephios\",\n        \"description\": \"ephios manages events for medical services\",\n        \"start_url\": \"/\",\n        \"display\": \"standalone\",\n        \"scope\": \"/\",\n        \"orientation\": \"any\",\n        \"background_color\": \"#fff\",\n        \"theme_color\": \"#000\",\n        \"status_bar\": \"default\",\n        \"dir\": \"auto\",\n        \"icons\": settings.PWA_APP_ICONS,\n        \"lang\": get_language(),\n    }\n    response = JsonResponse(manifest_json)\n    response[\"Service-Worker-Allowed\"] = \"/\"\n    return response\n\n\n@functools.lru_cache\ndef serviceworker_js():\n    with open(finders.find(\"ephios/js/serviceworker.js\"), \"rb\") as sw_js:\n        return sw_js.read()\n\n\ndef serviceworker(request):\n    return HttpResponse(\n        serviceworker_js(),\n        content_type=\"application/javascript\",\n    )\n\n\ndef offline(request):\n    return render(request, \"offline.html\")\n", "path": "ephios/core/views/pwa.py"}], "after_files": [{"content": "import functools\n\nfrom django.conf import settings\nfrom django.contrib.staticfiles import finders\nfrom django.http import HttpResponse, JsonResponse\nfrom django.shortcuts import render\nfrom django.utils.translation import get_language\n\n\ndef manifest(request):\n    manifest_json = {\n        \"name\": \"ephios\",\n        \"short_name\": \"ephios\",\n        \"description\": \"ephios manages events for medical services\",\n        \"start_url\": \"/\",\n        \"display\": \"standalone\",\n        \"scope\": \"/\",\n        \"background_color\": \"#fff\",\n        \"theme_color\": \"#000\",\n        \"status_bar\": \"default\",\n        \"dir\": \"auto\",\n        \"icons\": settings.PWA_APP_ICONS,\n        \"lang\": get_language(),\n    }\n    response = JsonResponse(manifest_json)\n    response[\"Service-Worker-Allowed\"] = \"/\"\n    return response\n\n\n@functools.lru_cache\ndef serviceworker_js():\n    with open(finders.find(\"ephios/js/serviceworker.js\"), \"rb\") as sw_js:\n        return sw_js.read()\n\n\ndef serviceworker(request):\n    return HttpResponse(\n        serviceworker_js(),\n        content_type=\"application/javascript\",\n    )\n\n\ndef offline(request):\n    return render(request, \"offline.html\")\n", "path": "ephios/core/views/pwa.py"}]}