prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Demo is broken for 0.1.6
  ## Description
  <!-- A clear and concise description of what the bug is. -->
  
  The demo can't be deployed with the current `master` branch (0.1.6)
  
  The reasons are:
  
  - We didn't add the fix to the demo settings in #3499 (just to prod), and
  - We have an extra dependency in the demo setup which we need to build in but the current `Dockerfile` doesn't support that.
  
  ## Expected behavior
  <!-- A clear and concise description of what you expected to happen. -->
  
  We should be able to demo version 0.1.6 on our demo site.
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `demo/settings.py`
  Content:
  ```
  1 from config.settings.common_settings import *  # noqa
  2 from decouple import config as decouple_config
  3 
  4 INSTALLED_APPS += [  # noqa
  5     "demo",
  6     "health_check",
  7 ]
  8 
  9 MIDDLEWARE += [  # noqa
  10     "demo.middleware.LiveDemoModeMiddleware",
  11 ]
  12 
  13 MATHESAR_MODE = 'PRODUCTION'
  14 MATHESAR_LIVE_DEMO = True
  15 MATHESAR_LIVE_DEMO_USERNAME = decouple_config('MATHESAR_LIVE_DEMO_USERNAME', default=None)
  16 MATHESAR_LIVE_DEMO_PASSWORD = decouple_config('MATHESAR_LIVE_DEMO_PASSWORD', default=None)
  17 
  18 MATHESAR_DEMO_TEMPLATE = 'mathesar_demo_template'
  19 MATHESAR_DEMO_ARXIV_LOG_PATH = decouple_config(
  20     'MATHESAR_DEMO_ARXIV_LOG_PATH',
  21     default='/var/lib/mathesar/demo/arxiv_db_schema_log'
  22 )
  23 BASE_TEMPLATE_ADDITIONAL_SCRIPT_TEMPLATES += ['demo/analytics.html'] # noqa
  24 ROOT_URLCONF = "demo.urls"
  25
  ```
  --- 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/demo/settings.py b/demo/settings.py
  --- a/demo/settings.py
  +++ b/demo/settings.py
  @@ -10,6 +10,9 @@
       "demo.middleware.LiveDemoModeMiddleware",
   ]
   
  +
  +SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
  +
   MATHESAR_MODE = 'PRODUCTION'
   MATHESAR_LIVE_DEMO = True
   MATHESAR_LIVE_DEMO_USERNAME = decouple_config('MATHESAR_LIVE_DEMO_USERNAME', default=None)
  
verification_info: {"golden_diff": "diff --git a/demo/settings.py b/demo/settings.py\n--- a/demo/settings.py\n+++ b/demo/settings.py\n@@ -10,6 +10,9 @@\n     \"demo.middleware.LiveDemoModeMiddleware\",\n ]\n \n+\n+SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')\n+\n MATHESAR_MODE = 'PRODUCTION'\n MATHESAR_LIVE_DEMO = True\n MATHESAR_LIVE_DEMO_USERNAME = decouple_config('MATHESAR_LIVE_DEMO_USERNAME', default=None)\n", "issue": "Demo is broken for 0.1.6\n## Description\r\n<!-- A clear and concise description of what the bug is. -->\r\n\r\nThe demo can't be deployed with the current `master` branch (0.1.6)\r\n\r\nThe reasons are:\r\n\r\n- We didn't add the fix to the demo settings in #3499 (just to prod), and\r\n- We have an extra dependency in the demo setup which we need to build in but the current `Dockerfile` doesn't support that.\r\n\r\n## Expected behavior\r\n<!-- A clear and concise description of what you expected to happen. -->\r\n\r\nWe should be able to demo version 0.1.6 on our demo site.\n", "before_files": [{"content": "from config.settings.common_settings import *  # noqa\nfrom decouple import config as decouple_config\n\nINSTALLED_APPS += [  # noqa\n    \"demo\",\n    \"health_check\",\n]\n\nMIDDLEWARE += [  # noqa\n    \"demo.middleware.LiveDemoModeMiddleware\",\n]\n\nMATHESAR_MODE = 'PRODUCTION'\nMATHESAR_LIVE_DEMO = True\nMATHESAR_LIVE_DEMO_USERNAME = decouple_config('MATHESAR_LIVE_DEMO_USERNAME', default=None)\nMATHESAR_LIVE_DEMO_PASSWORD = decouple_config('MATHESAR_LIVE_DEMO_PASSWORD', default=None)\n\nMATHESAR_DEMO_TEMPLATE = 'mathesar_demo_template'\nMATHESAR_DEMO_ARXIV_LOG_PATH = decouple_config(\n    'MATHESAR_DEMO_ARXIV_LOG_PATH',\n    default='/var/lib/mathesar/demo/arxiv_db_schema_log'\n)\nBASE_TEMPLATE_ADDITIONAL_SCRIPT_TEMPLATES += ['demo/analytics.html'] # noqa\nROOT_URLCONF = \"demo.urls\"\n", "path": "demo/settings.py"}], "after_files": [{"content": "from config.settings.common_settings import *  # noqa\nfrom decouple import config as decouple_config\n\nINSTALLED_APPS += [  # noqa\n    \"demo\",\n    \"health_check\",\n]\n\nMIDDLEWARE += [  # noqa\n    \"demo.middleware.LiveDemoModeMiddleware\",\n]\n\n\nSECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')\n\nMATHESAR_MODE = 'PRODUCTION'\nMATHESAR_LIVE_DEMO = True\nMATHESAR_LIVE_DEMO_USERNAME = decouple_config('MATHESAR_LIVE_DEMO_USERNAME', default=None)\nMATHESAR_LIVE_DEMO_PASSWORD = decouple_config('MATHESAR_LIVE_DEMO_PASSWORD', default=None)\n\nMATHESAR_DEMO_TEMPLATE = 'mathesar_demo_template'\nMATHESAR_DEMO_ARXIV_LOG_PATH = decouple_config(\n    'MATHESAR_DEMO_ARXIV_LOG_PATH',\n    default='/var/lib/mathesar/demo/arxiv_db_schema_log'\n)\nBASE_TEMPLATE_ADDITIONAL_SCRIPT_TEMPLATES += ['demo/analytics.html'] # noqa\nROOT_URLCONF = \"demo.urls\"\n", "path": "demo/settings.py"}]}