We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Relative path for `static` django resources
@Uxio0 addressed this in this PR: https://github.com/gnosis/safe-transaction-service/pull/400

This would facilitate having a custom mounting point for the services in nginx, making `static`'s location relative.

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `src/config/settings.py`
Content:
```
1 """
2 Django settings for safe_client_config_service project.
3 
4 Generated by 'django-admin startproject' using Django 3.2.
5 
6 For more information on this file, see
7 https://docs.djangoproject.com/en/3.2/topics/settings/
8 
9 For the full list of settings and their values, see
10 https://docs.djangoproject.com/en/3.2/ref/settings/
11 """
12 import os
13 from distutils.util import strtobool
14 from pathlib import Path
15 
16 # Build paths inside the project like this: BASE_DIR / 'subdir'.
17 
18 BASE_DIR = Path(__file__).resolve().parent.parent
19 
20 # Quick-start development settings - unsuitable for production
21 # See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/
22 
23 # SECURITY WARNING: keep the secret key used in production secret!
24 SECRET_KEY = os.getenv("SECRET_KEY", None)
25 
26 # SECURITY WARNING: don't run with debug turned on in production!
27 DEBUG = bool(strtobool(os.getenv("DEBUG", "false")))
28 
29 # https://docs.djangoproject.com/en/3.2/ref/settings/#std:setting-ALLOWED_HOSTS
30 allowed_hosts = os.getenv("DJANGO_ALLOWED_HOSTS", ".localhost,127.0.0.1,[::1]")
31 ALLOWED_HOSTS = [allowed_host.strip() for allowed_host in allowed_hosts.split(",")]
32 
33 # Application definition
34 
35 REST_FRAMEWORK = {
36     # https://www.django-rest-framework.org/api-guide/renderers/
37     "DEFAULT_RENDERER_CLASSES": [
38         "djangorestframework_camel_case.render.CamelCaseJSONRenderer",
39     ],
40     "DEFAULT_VERSIONING_CLASS": "rest_framework.versioning.NamespaceVersioning",
41 }
42 
43 INSTALLED_APPS = [
44     "corsheaders",
45     "about.apps.AboutAppConfig",
46     "chains.apps.AppsConfig",
47     "safe_apps.apps.AppsConfig",
48     "django.contrib.admin",
49     "django.contrib.auth",
50     "django.contrib.contenttypes",
51     "django.contrib.sessions",
52     "django.contrib.messages",
53     "django.contrib.staticfiles",
54     "rest_framework",
55     "drf_yasg",
56 ]
57 
58 MIDDLEWARE = [
59     "config.middleware.LoggingMiddleware",
60     "corsheaders.middleware.CorsMiddleware",
61     "django.middleware.security.SecurityMiddleware",
62     "django.contrib.sessions.middleware.SessionMiddleware",
63     "django.middleware.common.CommonMiddleware",
64     "django.middleware.csrf.CsrfViewMiddleware",
65     "django.contrib.auth.middleware.AuthenticationMiddleware",
66     "django.contrib.messages.middleware.MessageMiddleware",
67     "django.middleware.clickjacking.XFrameOptionsMiddleware",
68 ]
69 
70 CACHES = {
71     "default": {
72         "BACKEND": "django.core.cache.backends.locmem.LocMemCache",
73     },
74     "safe-apps": {
75         "BACKEND": "django.core.cache.backends.locmem.LocMemCache",
76     },
77 }
78 
79 LOGGING = {
80     "version": 1,
81     "disable_existing_loggers": False,
82     "formatters": {
83         "short": {"format": "%(asctime)s %(message)s"},
84         "verbose": {
85             "format": "%(asctime)s [%(levelname)s] [%(processName)s] %(message)s"
86         },
87     },
88     "handlers": {
89         "console": {
90             "class": "logging.StreamHandler",
91             "formatter": "verbose",
92         },
93         "console_short": {
94             "class": "logging.StreamHandler",
95             "formatter": "short",
96         },
97     },
98     "root": {
99         "handlers": ["console"],
100         "level": os.getenv("ROOT_LOG_LEVEL", "INFO"),
101     },
102     "loggers": {
103         "LoggingMiddleware": {
104             "handlers": ["console_short"],
105             "level": "INFO",
106             "propagate": False,
107         },
108     },
109 }
110 
111 ROOT_URLCONF = "config.urls"
112 
113 TEMPLATES = [
114     {
115         "BACKEND": "django.template.backends.django.DjangoTemplates",
116         "DIRS": [],
117         "APP_DIRS": True,
118         "OPTIONS": {
119             "context_processors": [
120                 "django.template.context_processors.debug",
121                 "django.template.context_processors.request",
122                 "django.contrib.auth.context_processors.auth",
123                 "django.contrib.messages.context_processors.messages",
124             ],
125         },
126     },
127 ]
128 
129 WSGI_APPLICATION = "config.wsgi.application"
130 
131 # Database
132 # https://docs.djangoproject.com/en/3.2/ref/settings/#databases
133 
134 DATABASES = {
135     "default": {
136         "ENGINE": "django.db.backends.postgresql",
137         "NAME": os.getenv("POSTGRES_NAME", "postgres"),
138         "USER": os.getenv("POSTGRES_USER", "postgres"),
139         "PASSWORD": os.getenv("POSTGRES_PASSWORD", "postgres"),
140         "HOST": os.getenv("POSTGRES_HOST", "db"),
141         "PORT": os.getenv("POSTGRES_PORT", "5432"),
142     }
143 }
144 
145 # Password validation
146 # https://docs.djangoproject.com/en/3.2/ref/settings/#auth-password-validators
147 
148 AUTH_PASSWORD_VALIDATORS = [
149     {
150         "NAME": "django.contrib.auth.password_validation.UserAttributeSimilarityValidator",
151     },
152     {
153         "NAME": "django.contrib.auth.password_validation.MinimumLengthValidator",
154     },
155     {
156         "NAME": "django.contrib.auth.password_validation.CommonPasswordValidator",
157     },
158     {
159         "NAME": "django.contrib.auth.password_validation.NumericPasswordValidator",
160     },
161 ]
162 
163 # Internationalization
164 # https://docs.djangoproject.com/en/3.2/topics/i18n/
165 
166 LANGUAGE_CODE = "en-us"
167 
168 TIME_ZONE = "UTC"
169 
170 USE_I18N = True
171 
172 USE_L10N = True
173 
174 USE_TZ = True
175 
176 # Static files (CSS, JavaScript, Images)
177 # https://docs.djangoproject.com/en/3.2/howto/static-files/
178 
179 STATIC_URL = "/static/"
180 
181 STATIC_ROOT = "staticfiles"
182 
183 # Default primary key field type
184 # https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field
185 
186 DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
187 
188 SWAGGER_SETTINGS = {
189     "DEFAULT_INFO": "config.swagger_info.SAFE_CONFIG_SERVICE_SWAGGER_INFO"
190 }
191 
192 CORS_ALLOW_ALL_ORIGINS = True
193 CORS_URLS_REGEX = r"^/api/.*$"
194 
195 CGW_URL = os.environ.get("CGW_URL")
196 CGW_FLUSH_TOKEN = os.environ.get("CGW_FLUSH_TOKEN")
197 
198 # By default, Django stores files locally, using the MEDIA_ROOT and MEDIA_URL settings.
199 # (using the default the default FileSystemStorage)
200 # https://docs.djangoproject.com/en/dev/ref/settings/#media-root
201 MEDIA_ROOT = f"{BASE_DIR}/media/"
202 # https://docs.djangoproject.com/en/dev/ref/settings/#media-url
203 MEDIA_URL = "/media/"
204 
205 AWS_ACCESS_KEY_ID = os.getenv("AWS_ACCESS_KEY_ID")
206 AWS_SECRET_ACCESS_KEY = os.getenv("AWS_SECRET_ACCESS_KEY")
207 AWS_STORAGE_BUCKET_NAME = os.getenv("AWS_STORAGE_BUCKET_NAME")
208 AWS_S3_CUSTOM_DOMAIN = os.getenv("AWS_S3_CUSTOM_DOMAIN")
209 # By default files with the same name will overwrite each other. Set this to False to have extra characters appended.
210 AWS_S3_FILE_OVERWRITE = True
211 # Setting AWS_QUERYSTRING_AUTH to False to remove query parameter authentication from generated URLs.
212 # This can be useful if your S3 buckets are public.
213 AWS_QUERYSTRING_AUTH = False
214 DEFAULT_FILE_STORAGE = os.getenv(
215     "DEFAULT_FILE_STORAGE", "storages.backends.s3boto3.S3Boto3Storage"
216 )
217
```
--- 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/src/config/settings.py b/src/config/settings.py
--- a/src/config/settings.py
+++ b/src/config/settings.py
@@ -109,6 +109,7 @@
 }
 
 ROOT_URLCONF = "config.urls"
+FORCE_SCRIPT_NAME = os.getenv("FORCE_SCRIPT_NAME", default=None)
 
 TEMPLATES = [
     {
@@ -176,8 +177,7 @@
 # Static files (CSS, JavaScript, Images)
 # https://docs.djangoproject.com/en/3.2/howto/static-files/
 
-STATIC_URL = "/static/"
-
+STATIC_URL = "static/"
 STATIC_ROOT = "staticfiles"
 
 # Default primary key field type

{"golden_diff": "diff --git a/src/config/settings.py b/src/config/settings.py\n--- a/src/config/settings.py\n+++ b/src/config/settings.py\n@@ -109,6 +109,7 @@\n }\n \n ROOT_URLCONF = \"config.urls\"\n+FORCE_SCRIPT_NAME = os.getenv(\"FORCE_SCRIPT_NAME\", default=None)\n \n TEMPLATES = [\n     {\n@@ -176,8 +177,7 @@\n # Static files (CSS, JavaScript, Images)\n # https://docs.djangoproject.com/en/3.2/howto/static-files/\n \n-STATIC_URL = \"/static/\"\n-\n+STATIC_URL = \"static/\"\n STATIC_ROOT = \"staticfiles\"\n \n # Default primary key field type\n", "issue": "Relative path for `static` django resources\n@Uxio0 addressed this in this PR: https://github.com/gnosis/safe-transaction-service/pull/400\r\n\r\nThis would facilitate having a custom mounting point for the services in nginx, making `static`'s location relative.\n", "before_files": [{"content": "\"\"\"\nDjango settings for safe_client_config_service project.\n\nGenerated by 'django-admin startproject' using Django 3.2.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/3.2/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/3.2/ref/settings/\n\"\"\"\nimport os\nfrom distutils.util import strtobool\nfrom pathlib import Path\n\n# Build paths inside the project like this: BASE_DIR / 'subdir'.\n\nBASE_DIR = Path(__file__).resolve().parent.parent\n\n# Quick-start development settings - unsuitable for production\n# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/\n\n# SECURITY WARNING: keep the secret key used in production secret!\nSECRET_KEY = os.getenv(\"SECRET_KEY\", None)\n\n# SECURITY WARNING: don't run with debug turned on in production!\nDEBUG = bool(strtobool(os.getenv(\"DEBUG\", \"false\")))\n\n# https://docs.djangoproject.com/en/3.2/ref/settings/#std:setting-ALLOWED_HOSTS\nallowed_hosts = os.getenv(\"DJANGO_ALLOWED_HOSTS\", \".localhost,127.0.0.1,[::1]\")\nALLOWED_HOSTS = [allowed_host.strip() for allowed_host in allowed_hosts.split(\",\")]\n\n# Application definition\n\nREST_FRAMEWORK = {\n    # https://www.django-rest-framework.org/api-guide/renderers/\n    \"DEFAULT_RENDERER_CLASSES\": [\n        \"djangorestframework_camel_case.render.CamelCaseJSONRenderer\",\n    ],\n    \"DEFAULT_VERSIONING_CLASS\": \"rest_framework.versioning.NamespaceVersioning\",\n}\n\nINSTALLED_APPS = [\n    \"corsheaders\",\n    \"about.apps.AboutAppConfig\",\n    \"chains.apps.AppsConfig\",\n    \"safe_apps.apps.AppsConfig\",\n    \"django.contrib.admin\",\n    \"django.contrib.auth\",\n    \"django.contrib.contenttypes\",\n    \"django.contrib.sessions\",\n    \"django.contrib.messages\",\n    \"django.contrib.staticfiles\",\n    \"rest_framework\",\n    \"drf_yasg\",\n]\n\nMIDDLEWARE = [\n    \"config.middleware.LoggingMiddleware\",\n    \"corsheaders.middleware.CorsMiddleware\",\n    \"django.middleware.security.SecurityMiddleware\",\n    \"django.contrib.sessions.middleware.SessionMiddleware\",\n    \"django.middleware.common.CommonMiddleware\",\n    \"django.middleware.csrf.CsrfViewMiddleware\",\n    \"django.contrib.auth.middleware.AuthenticationMiddleware\",\n    \"django.contrib.messages.middleware.MessageMiddleware\",\n    \"django.middleware.clickjacking.XFrameOptionsMiddleware\",\n]\n\nCACHES = {\n    \"default\": {\n        \"BACKEND\": \"django.core.cache.backends.locmem.LocMemCache\",\n    },\n    \"safe-apps\": {\n        \"BACKEND\": \"django.core.cache.backends.locmem.LocMemCache\",\n    },\n}\n\nLOGGING = {\n    \"version\": 1,\n    \"disable_existing_loggers\": False,\n    \"formatters\": {\n        \"short\": {\"format\": \"%(asctime)s %(message)s\"},\n        \"verbose\": {\n            \"format\": \"%(asctime)s [%(levelname)s] [%(processName)s] %(message)s\"\n        },\n    },\n    \"handlers\": {\n        \"console\": {\n            \"class\": \"logging.StreamHandler\",\n            \"formatter\": \"verbose\",\n        },\n        \"console_short\": {\n            \"class\": \"logging.StreamHandler\",\n            \"formatter\": \"short\",\n        },\n    },\n    \"root\": {\n        \"handlers\": [\"console\"],\n        \"level\": os.getenv(\"ROOT_LOG_LEVEL\", \"INFO\"),\n    },\n    \"loggers\": {\n        \"LoggingMiddleware\": {\n            \"handlers\": [\"console_short\"],\n            \"level\": \"INFO\",\n            \"propagate\": False,\n        },\n    },\n}\n\nROOT_URLCONF = \"config.urls\"\n\nTEMPLATES = [\n    {\n        \"BACKEND\": \"django.template.backends.django.DjangoTemplates\",\n        \"DIRS\": [],\n        \"APP_DIRS\": True,\n        \"OPTIONS\": {\n            \"context_processors\": [\n                \"django.template.context_processors.debug\",\n                \"django.template.context_processors.request\",\n                \"django.contrib.auth.context_processors.auth\",\n                \"django.contrib.messages.context_processors.messages\",\n            ],\n        },\n    },\n]\n\nWSGI_APPLICATION = \"config.wsgi.application\"\n\n# Database\n# https://docs.djangoproject.com/en/3.2/ref/settings/#databases\n\nDATABASES = {\n    \"default\": {\n        \"ENGINE\": \"django.db.backends.postgresql\",\n        \"NAME\": os.getenv(\"POSTGRES_NAME\", \"postgres\"),\n        \"USER\": os.getenv(\"POSTGRES_USER\", \"postgres\"),\n        \"PASSWORD\": os.getenv(\"POSTGRES_PASSWORD\", \"postgres\"),\n        \"HOST\": os.getenv(\"POSTGRES_HOST\", \"db\"),\n        \"PORT\": os.getenv(\"POSTGRES_PORT\", \"5432\"),\n    }\n}\n\n# Password validation\n# https://docs.djangoproject.com/en/3.2/ref/settings/#auth-password-validators\n\nAUTH_PASSWORD_VALIDATORS = [\n    {\n        \"NAME\": \"django.contrib.auth.password_validation.UserAttributeSimilarityValidator\",\n    },\n    {\n        \"NAME\": \"django.contrib.auth.password_validation.MinimumLengthValidator\",\n    },\n    {\n        \"NAME\": \"django.contrib.auth.password_validation.CommonPasswordValidator\",\n    },\n    {\n        \"NAME\": \"django.contrib.auth.password_validation.NumericPasswordValidator\",\n    },\n]\n\n# Internationalization\n# https://docs.djangoproject.com/en/3.2/topics/i18n/\n\nLANGUAGE_CODE = \"en-us\"\n\nTIME_ZONE = \"UTC\"\n\nUSE_I18N = True\n\nUSE_L10N = True\n\nUSE_TZ = True\n\n# Static files (CSS, JavaScript, Images)\n# https://docs.djangoproject.com/en/3.2/howto/static-files/\n\nSTATIC_URL = \"/static/\"\n\nSTATIC_ROOT = \"staticfiles\"\n\n# Default primary key field type\n# https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field\n\nDEFAULT_AUTO_FIELD = \"django.db.models.BigAutoField\"\n\nSWAGGER_SETTINGS = {\n    \"DEFAULT_INFO\": \"config.swagger_info.SAFE_CONFIG_SERVICE_SWAGGER_INFO\"\n}\n\nCORS_ALLOW_ALL_ORIGINS = True\nCORS_URLS_REGEX = r\"^/api/.*$\"\n\nCGW_URL = os.environ.get(\"CGW_URL\")\nCGW_FLUSH_TOKEN = os.environ.get(\"CGW_FLUSH_TOKEN\")\n\n# By default, Django stores files locally, using the MEDIA_ROOT and MEDIA_URL settings.\n# (using the default the default FileSystemStorage)\n# https://docs.djangoproject.com/en/dev/ref/settings/#media-root\nMEDIA_ROOT = f\"{BASE_DIR}/media/\"\n# https://docs.djangoproject.com/en/dev/ref/settings/#media-url\nMEDIA_URL = \"/media/\"\n\nAWS_ACCESS_KEY_ID = os.getenv(\"AWS_ACCESS_KEY_ID\")\nAWS_SECRET_ACCESS_KEY = os.getenv(\"AWS_SECRET_ACCESS_KEY\")\nAWS_STORAGE_BUCKET_NAME = os.getenv(\"AWS_STORAGE_BUCKET_NAME\")\nAWS_S3_CUSTOM_DOMAIN = os.getenv(\"AWS_S3_CUSTOM_DOMAIN\")\n# By default files with the same name will overwrite each other. Set this to False to have extra characters appended.\nAWS_S3_FILE_OVERWRITE = True\n# Setting AWS_QUERYSTRING_AUTH to False to remove query parameter authentication from generated URLs.\n# This can be useful if your S3 buckets are public.\nAWS_QUERYSTRING_AUTH = False\nDEFAULT_FILE_STORAGE = os.getenv(\n    \"DEFAULT_FILE_STORAGE\", \"storages.backends.s3boto3.S3Boto3Storage\"\n)\n", "path": "src/config/settings.py"}], "after_files": [{"content": "\"\"\"\nDjango settings for safe_client_config_service project.\n\nGenerated by 'django-admin startproject' using Django 3.2.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/3.2/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/3.2/ref/settings/\n\"\"\"\nimport os\nfrom distutils.util import strtobool\nfrom pathlib import Path\n\n# Build paths inside the project like this: BASE_DIR / 'subdir'.\n\nBASE_DIR = Path(__file__).resolve().parent.parent\n\n# Quick-start development settings - unsuitable for production\n# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/\n\n# SECURITY WARNING: keep the secret key used in production secret!\nSECRET_KEY = os.getenv(\"SECRET_KEY\", None)\n\n# SECURITY WARNING: don't run with debug turned on in production!\nDEBUG = bool(strtobool(os.getenv(\"DEBUG\", \"false\")))\n\n# https://docs.djangoproject.com/en/3.2/ref/settings/#std:setting-ALLOWED_HOSTS\nallowed_hosts = os.getenv(\"DJANGO_ALLOWED_HOSTS\", \".localhost,127.0.0.1,[::1]\")\nALLOWED_HOSTS = [allowed_host.strip() for allowed_host in allowed_hosts.split(\",\")]\n\n# Application definition\n\nREST_FRAMEWORK = {\n    # https://www.django-rest-framework.org/api-guide/renderers/\n    \"DEFAULT_RENDERER_CLASSES\": [\n        \"djangorestframework_camel_case.render.CamelCaseJSONRenderer\",\n    ],\n    \"DEFAULT_VERSIONING_CLASS\": \"rest_framework.versioning.NamespaceVersioning\",\n}\n\nINSTALLED_APPS = [\n    \"corsheaders\",\n    \"about.apps.AboutAppConfig\",\n    \"chains.apps.AppsConfig\",\n    \"safe_apps.apps.AppsConfig\",\n    \"django.contrib.admin\",\n    \"django.contrib.auth\",\n    \"django.contrib.contenttypes\",\n    \"django.contrib.sessions\",\n    \"django.contrib.messages\",\n    \"django.contrib.staticfiles\",\n    \"rest_framework\",\n    \"drf_yasg\",\n]\n\nMIDDLEWARE = [\n    \"config.middleware.LoggingMiddleware\",\n    \"corsheaders.middleware.CorsMiddleware\",\n    \"django.middleware.security.SecurityMiddleware\",\n    \"django.contrib.sessions.middleware.SessionMiddleware\",\n    \"django.middleware.common.CommonMiddleware\",\n    \"django.middleware.csrf.CsrfViewMiddleware\",\n    \"django.contrib.auth.middleware.AuthenticationMiddleware\",\n    \"django.contrib.messages.middleware.MessageMiddleware\",\n    \"django.middleware.clickjacking.XFrameOptionsMiddleware\",\n]\n\nCACHES = {\n    \"default\": {\n        \"BACKEND\": \"django.core.cache.backends.locmem.LocMemCache\",\n    },\n    \"safe-apps\": {\n        \"BACKEND\": \"django.core.cache.backends.locmem.LocMemCache\",\n    },\n}\n\nLOGGING = {\n    \"version\": 1,\n    \"disable_existing_loggers\": False,\n    \"formatters\": {\n        \"short\": {\"format\": \"%(asctime)s %(message)s\"},\n        \"verbose\": {\n            \"format\": \"%(asctime)s [%(levelname)s] [%(processName)s] %(message)s\"\n        },\n    },\n    \"handlers\": {\n        \"console\": {\n            \"class\": \"logging.StreamHandler\",\n            \"formatter\": \"verbose\",\n        },\n        \"console_short\": {\n            \"class\": \"logging.StreamHandler\",\n            \"formatter\": \"short\",\n        },\n    },\n    \"root\": {\n        \"handlers\": [\"console\"],\n        \"level\": os.getenv(\"ROOT_LOG_LEVEL\", \"INFO\"),\n    },\n    \"loggers\": {\n        \"LoggingMiddleware\": {\n            \"handlers\": [\"console_short\"],\n            \"level\": \"INFO\",\n            \"propagate\": False,\n        },\n    },\n}\n\nROOT_URLCONF = \"config.urls\"\nFORCE_SCRIPT_NAME = os.getenv(\"FORCE_SCRIPT_NAME\", default=None)\n\nTEMPLATES = [\n    {\n        \"BACKEND\": \"django.template.backends.django.DjangoTemplates\",\n        \"DIRS\": [],\n        \"APP_DIRS\": True,\n        \"OPTIONS\": {\n            \"context_processors\": [\n                \"django.template.context_processors.debug\",\n                \"django.template.context_processors.request\",\n                \"django.contrib.auth.context_processors.auth\",\n                \"django.contrib.messages.context_processors.messages\",\n            ],\n        },\n    },\n]\n\nWSGI_APPLICATION = \"config.wsgi.application\"\n\n# Database\n# https://docs.djangoproject.com/en/3.2/ref/settings/#databases\n\nDATABASES = {\n    \"default\": {\n        \"ENGINE\": \"django.db.backends.postgresql\",\n        \"NAME\": os.getenv(\"POSTGRES_NAME\", \"postgres\"),\n        \"USER\": os.getenv(\"POSTGRES_USER\", \"postgres\"),\n        \"PASSWORD\": os.getenv(\"POSTGRES_PASSWORD\", \"postgres\"),\n        \"HOST\": os.getenv(\"POSTGRES_HOST\", \"db\"),\n        \"PORT\": os.getenv(\"POSTGRES_PORT\", \"5432\"),\n    }\n}\n\n# Password validation\n# https://docs.djangoproject.com/en/3.2/ref/settings/#auth-password-validators\n\nAUTH_PASSWORD_VALIDATORS = [\n    {\n        \"NAME\": \"django.contrib.auth.password_validation.UserAttributeSimilarityValidator\",\n    },\n    {\n        \"NAME\": \"django.contrib.auth.password_validation.MinimumLengthValidator\",\n    },\n    {\n        \"NAME\": \"django.contrib.auth.password_validation.CommonPasswordValidator\",\n    },\n    {\n        \"NAME\": \"django.contrib.auth.password_validation.NumericPasswordValidator\",\n    },\n]\n\n# Internationalization\n# https://docs.djangoproject.com/en/3.2/topics/i18n/\n\nLANGUAGE_CODE = \"en-us\"\n\nTIME_ZONE = \"UTC\"\n\nUSE_I18N = True\n\nUSE_L10N = True\n\nUSE_TZ = True\n\n# Static files (CSS, JavaScript, Images)\n# https://docs.djangoproject.com/en/3.2/howto/static-files/\n\nSTATIC_URL = \"static/\"\nSTATIC_ROOT = \"staticfiles\"\n\n# Default primary key field type\n# https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field\n\nDEFAULT_AUTO_FIELD = \"django.db.models.BigAutoField\"\n\nSWAGGER_SETTINGS = {\n    \"DEFAULT_INFO\": \"config.swagger_info.SAFE_CONFIG_SERVICE_SWAGGER_INFO\"\n}\n\nCORS_ALLOW_ALL_ORIGINS = True\nCORS_URLS_REGEX = r\"^/api/.*$\"\n\nCGW_URL = os.environ.get(\"CGW_URL\")\nCGW_FLUSH_TOKEN = os.environ.get(\"CGW_FLUSH_TOKEN\")\n\n# By default, Django stores files locally, using the MEDIA_ROOT and MEDIA_URL settings.\n# (using the default the default FileSystemStorage)\n# https://docs.djangoproject.com/en/dev/ref/settings/#media-root\nMEDIA_ROOT = f\"{BASE_DIR}/media/\"\n# https://docs.djangoproject.com/en/dev/ref/settings/#media-url\nMEDIA_URL = \"/media/\"\n\nAWS_ACCESS_KEY_ID = os.getenv(\"AWS_ACCESS_KEY_ID\")\nAWS_SECRET_ACCESS_KEY = os.getenv(\"AWS_SECRET_ACCESS_KEY\")\nAWS_STORAGE_BUCKET_NAME = os.getenv(\"AWS_STORAGE_BUCKET_NAME\")\nAWS_S3_CUSTOM_DOMAIN = os.getenv(\"AWS_S3_CUSTOM_DOMAIN\")\n# By default files with the same name will overwrite each other. Set this to False to have extra characters appended.\nAWS_S3_FILE_OVERWRITE = True\n# Setting AWS_QUERYSTRING_AUTH to False to remove query parameter authentication from generated URLs.\n# This can be useful if your S3 buckets are public.\nAWS_QUERYSTRING_AUTH = False\nDEFAULT_FILE_STORAGE = os.getenv(\n    \"DEFAULT_FILE_STORAGE\", \"storages.backends.s3boto3.S3Boto3Storage\"\n)\n", "path": "src/config/settings.py"}]}