prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Modify docker configuration to work on OSX
  Docker for Mac does not properly support the `network_mode: host` option for containers. In order to run the system on OSX, it will be necessary to network the containers using a bridged network:
  
  > By default Compose sets up a single network for your app. Each container for a service joins the default network and is both reachable by other containers on that network, and discoverable by them at a hostname identical to the container name."
  
  Rather than accessing other containers via a port on localhost, containers will  access each other using the instance name as the hostname. Port 80 will then be exposed from the nginx container to the host.
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `csunplugged/config/settings/database_proxy.py`
  Content:
  ```
  1 # -*- coding: utf-8 -*-
  2 """Django settings for connecting via Google Cloud SQL Proxy."""
  3 
  4 from .base import *  # noqa: F403
  5 
  6 
  7 # DATABASE CONFIGURATION
  8 # ----------------------------------------------------------------------------
  9 # See: https://docs.djangoproject.com/en/dev/ref/settings/#databases
  10 DATABASES = {
  11     "default": {
  12         "ENGINE": "django.db.backends.postgresql",
  13         "HOST": "localhost",
  14         "PORT": "5433",
  15         "NAME": "csunplugged",
  16         "USER": env("GOOGLE_CLOUD_SQL_DATABASE_USERNAME"),  # noqa: F405
  17         "PASSWORD": env("GOOGLE_CLOUD_SQL_DATABASE_PASSWORD"),  # noqa: F405
  18         "ATOMIC_REQUESTS": True,
  19     }
  20 }
  21 
  22 SECRET_KEY = env("DJANGO_SECRET_KEY")  # noqa: F405
  23
  ```
  --- 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/csunplugged/config/settings/database_proxy.py b/csunplugged/config/settings/database_proxy.py
  --- a/csunplugged/config/settings/database_proxy.py
  +++ b/csunplugged/config/settings/database_proxy.py
  @@ -10,8 +10,8 @@
   DATABASES = {
       "default": {
           "ENGINE": "django.db.backends.postgresql",
  -        "HOST": "localhost",
  -        "PORT": "5433",
  +        "HOST": "cloud_sql_proxy",
  +        "PORT": "5432",
           "NAME": "csunplugged",
           "USER": env("GOOGLE_CLOUD_SQL_DATABASE_USERNAME"),  # noqa: F405
           "PASSWORD": env("GOOGLE_CLOUD_SQL_DATABASE_PASSWORD"),  # noqa: F405
  
verification_info: {"golden_diff": "diff --git a/csunplugged/config/settings/database_proxy.py b/csunplugged/config/settings/database_proxy.py\n--- a/csunplugged/config/settings/database_proxy.py\n+++ b/csunplugged/config/settings/database_proxy.py\n@@ -10,8 +10,8 @@\n DATABASES = {\n     \"default\": {\n         \"ENGINE\": \"django.db.backends.postgresql\",\n-        \"HOST\": \"localhost\",\n-        \"PORT\": \"5433\",\n+        \"HOST\": \"cloud_sql_proxy\",\n+        \"PORT\": \"5432\",\n         \"NAME\": \"csunplugged\",\n         \"USER\": env(\"GOOGLE_CLOUD_SQL_DATABASE_USERNAME\"),  # noqa: F405\n         \"PASSWORD\": env(\"GOOGLE_CLOUD_SQL_DATABASE_PASSWORD\"),  # noqa: F405\n", "issue": "Modify docker configuration to work on OSX\nDocker for Mac does not properly support the `network_mode: host` option for containers. In order to run the system on OSX, it will be necessary to network the containers using a bridged network:\r\n\r\n> By default Compose sets up a single network for your app. Each container for a service joins the default network and is both reachable by other containers on that network, and discoverable by them at a hostname identical to the container name.\"\r\n\r\nRather than accessing other containers via a port on localhost, containers will  access each other using the instance name as the hostname. Port 80 will then be exposed from the nginx container to the host.\n", "before_files": [{"content": "# -*- coding: utf-8 -*-\n\"\"\"Django settings for connecting via Google Cloud SQL Proxy.\"\"\"\n\nfrom .base import *  # noqa: F403\n\n\n# DATABASE CONFIGURATION\n# ----------------------------------------------------------------------------\n# See: https://docs.djangoproject.com/en/dev/ref/settings/#databases\nDATABASES = {\n    \"default\": {\n        \"ENGINE\": \"django.db.backends.postgresql\",\n        \"HOST\": \"localhost\",\n        \"PORT\": \"5433\",\n        \"NAME\": \"csunplugged\",\n        \"USER\": env(\"GOOGLE_CLOUD_SQL_DATABASE_USERNAME\"),  # noqa: F405\n        \"PASSWORD\": env(\"GOOGLE_CLOUD_SQL_DATABASE_PASSWORD\"),  # noqa: F405\n        \"ATOMIC_REQUESTS\": True,\n    }\n}\n\nSECRET_KEY = env(\"DJANGO_SECRET_KEY\")  # noqa: F405\n", "path": "csunplugged/config/settings/database_proxy.py"}], "after_files": [{"content": "# -*- coding: utf-8 -*-\n\"\"\"Django settings for connecting via Google Cloud SQL Proxy.\"\"\"\n\nfrom .base import *  # noqa: F403\n\n\n# DATABASE CONFIGURATION\n# ----------------------------------------------------------------------------\n# See: https://docs.djangoproject.com/en/dev/ref/settings/#databases\nDATABASES = {\n    \"default\": {\n        \"ENGINE\": \"django.db.backends.postgresql\",\n        \"HOST\": \"cloud_sql_proxy\",\n        \"PORT\": \"5432\",\n        \"NAME\": \"csunplugged\",\n        \"USER\": env(\"GOOGLE_CLOUD_SQL_DATABASE_USERNAME\"),  # noqa: F405\n        \"PASSWORD\": env(\"GOOGLE_CLOUD_SQL_DATABASE_PASSWORD\"),  # noqa: F405\n        \"ATOMIC_REQUESTS\": True,\n    }\n}\n\nSECRET_KEY = env(\"DJANGO_SECRET_KEY\")  # noqa: F405\n", "path": "csunplugged/config/settings/database_proxy.py"}]}