We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Update Readme to use python3.7-dev
for Ubuntu it's also required to install python3-dev so we need also to update this too

--- 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/backend/wsgi.py`
Content:
```
1 """
2 WSGI config for backend project.
3 
4 It exposes the WSGI callable as a module-level variable named ``application``.
5 
6 For more information on this file, see
7 https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
8 """
9 
10 import os
11 
12 from django.core.wsgi import get_wsgi_application
13 
14 os.environ.setdefault("DJANGO_SETTINGS_MODULE", "backend.settings")
15 
16 application = get_wsgi_application()
17
```

Path: `src/backend/settings.py`
Content:
```
1 """
2 Django settings for backend project.
3 
4 Generated by 'django-admin startproject' using Django 1.11.11.
5 
6 For more information on this file, see
7 https://docs.djangoproject.com/en/1.11/topics/settings/
8 
9 For the full list of settings and their values, see
10 https://docs.djangoproject.com/en/1.11/ref/settings/
11 """
12 
13 import os
14 
15 # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
16 BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
17 
18 
19 # Quick-start development settings - unsuitable for production
20 # See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/
21 
22 # SECURITY WARNING: keep the secret key used in production secret!
23 SECRET_KEY = '-!v282$zj815_q@htaxcubylo)(l%a+k*-xi78hw*#s2@i86@_'
24 
25 # SECURITY WARNING: don't run with debug turned on in production!
26 DEBUG = True
27 
28 ALLOWED_HOSTS = [
29     'localhost',
30     '127.0.0.1',
31     '0.0.0.0'
32 ]
33 
34 # Needed for webauthn (this is a setting in case the application runs behind a proxy)
35 HOSTNAME = 'localhost'
36 BASE_URL = 'http://localhost:8000'
37 
38 # Application definition
39 
40 INSTALLED_APPS = [
41     'cms.apps.CmsConfig',
42     'gvz_api.apps.GvzApiConfig',
43     'django.contrib.admin',
44     'django.contrib.auth',
45     'django.contrib.contenttypes',
46     'django.contrib.messages',
47     'django.contrib.sessions',
48     'django.contrib.staticfiles',
49     'compressor',
50     'compressor_toolkit',
51     'widget_tweaks',
52     'easy_thumbnails',
53     'filer',
54     'mptt',
55     'rules.apps.AutodiscoverRulesConfig',
56 ]
57 
58 MIDDLEWARE = [
59     'django.middleware.security.SecurityMiddleware',
60     'django.contrib.sessions.middleware.SessionMiddleware',
61     'django.middleware.locale.LocaleMiddleware',
62     'django.middleware.common.CommonMiddleware',
63     'django.middleware.csrf.CsrfViewMiddleware',
64     'django.contrib.auth.middleware.AuthenticationMiddleware',
65     'django.contrib.messages.middleware.MessageMiddleware',
66     'django.middleware.clickjacking.XFrameOptionsMiddleware',
67 ]
68 
69 ROOT_URLCONF = 'backend.urls'
70 THUMBNAIL_HIGH_RESOLUTION = True
71 
72 TEMPLATES = [
73     {
74         'BACKEND': 'django.template.backends.django.DjangoTemplates',
75         'DIRS': [],
76         'APP_DIRS': True,
77         'OPTIONS': {
78             'context_processors': [
79                 'django.template.context_processors.debug',
80                 'django.template.context_processors.request',
81                 'django.contrib.auth.context_processors.auth',
82                 'django.contrib.messages.context_processors.messages',
83                 'backend.context_processors.region_slug_processor',
84             ],
85         },
86     },
87 ]
88 
89 WSGI_APPLICATION = 'backend.wsgi.application'
90 
91 
92 # Database
93 # https://docs.djangoproject.com/en/1.11/ref/settings/#databases
94 
95 DATABASES = {
96     'default': {
97         'ENGINE': 'django.db.backends.postgresql_psycopg2',
98         'NAME': 'integreat',
99         'USER': 'integreat',
100         'PASSWORD': 'password',
101         'HOST': 'localhost',
102         'PORT': '5432',
103     }
104 }
105 
106 # Directory for initial database contents
107 
108 FIXTURE_DIRS = (
109     os.path.join(BASE_DIR, 'cms/fixtures/'),
110 )
111 
112 # Authentication backends
113 
114 AUTHENTICATION_BACKENDS = (
115     'rules.permissions.ObjectPermissionBackend',
116     'django.contrib.auth.backends.ModelBackend', # this is default
117 )
118 
119 
120 # Password validation
121 # https://docs.djangoproject.com/en/1.11/ref/settings/#auth-password-validators
122 
123 AUTH_PASSWORD_VALIDATORS = [
124     {
125         'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
126     },
127     {
128         'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
129     },
130     {
131         'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
132     },
133     {
134         'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
135     },
136 ]
137 
138 
139 # Internationalization
140 # https://docs.djangoproject.com/en/1.11/topics/i18n/
141 
142 LANGUAGES = (
143     ('en-us', 'English'),
144     ('de-de', 'Deutsch'),
145 )
146 
147 LOCALE_PATHS = (
148     os.path.join(BASE_DIR, 'locale'),
149 )
150 
151 LANGUAGE_CODE = 'de-de'
152 
153 TIME_ZONE = 'UTC'
154 
155 USE_I18N = True
156 
157 USE_L10N = True
158 
159 USE_TZ = True
160 
161 
162 # Static files (CSS, JavaScript, Images)
163 # https://docs.djangoproject.com/en/1.11/howto/static-files/
164 
165 STATICFILES_DIRS = [
166     os.path.join(BASE_DIR, "../node_modules"),
167 ]
168 STATIC_URL = '/static/'
169 STATIC_ROOT = os.path.join(BASE_DIR, 'cms/static/')
170 
171 # Login
172 LOGIN_URL = '/login'
173 LOGIN_REDIRECT_URL = '/'
174 LOGOUT_REDIRECT_URL = '/login'
175 
176 # Miscellaneous
177 EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
178 CSRF_FAILURE_VIEW = 'cms.views.error_handler.csrf_failure'
179 
180 MEDIA_URL = '/media/'
181 MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
182 FILER_CANONICAL_URL = 'media/'
183 
184 LOGGING = {
185     'version': 1,
186     'disable_existing_loggers': False,
187     'handlers': {
188         'console': {
189             'class': 'logging.StreamHandler'
190         },
191     },
192     'loggers': {
193         'django': {
194             'handlers': ['console'],
195             'level': 'WARN',
196             'propagate': True,
197         },
198         'api': {
199             'handlers': ['console'],
200             'level': 'INFO',
201             'propagate': True,
202         },
203         'cms': {
204             'handlers': ['console'],
205             'level': 'INFO',
206             'propagate': True,
207         },
208         'rules': {
209             'handlers': ['console'],
210             'level': 'DEBUG',
211             'propagate': True,
212         },
213     }
214 }
215 
216 STATICFILES_FINDERS = (
217     'django.contrib.staticfiles.finders.FileSystemFinder',
218     'django.contrib.staticfiles.finders.AppDirectoriesFinder',
219     'compressor.finders.CompressorFinder',
220 )
221 
222 COMPRESS_CSS_FILTERS = [
223     'compressor.filters.css_default.CssAbsoluteFilter',
224     'compressor.filters.cssmin.CSSMinFilter',
225     'compressor.filters.template.TemplateFilter'
226 ]
227 COMPRESS_JS_FILTERS = [
228     'compressor.filters.jsmin.JSMinFilter',
229 ]
230 COMPRESS_PRECOMPILERS = (
231     ('module', 'compressor_toolkit.precompilers.ES6Compiler'),
232     ('css', 'compressor_toolkit.precompilers.SCSSCompiler'),
233 )
234 COMPRESS_ENABLED = True
235 COMPRESS_OFFLINE = True
236 
237 # GVZ (Gemeindeverzeichnis) API URL
238 GVZ_API_URL = "http://gvz.integreat-app.de/api/"
239 GVZ_API_ENABLED = True
240
```
--- 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/backend/settings.py b/src/backend/settings.py
--- a/src/backend/settings.py
+++ b/src/backend/settings.py
@@ -4,10 +4,10 @@
 Generated by 'django-admin startproject' using Django 1.11.11.
 
 For more information on this file, see
-https://docs.djangoproject.com/en/1.11/topics/settings/
+https://docs.djangoproject.com/en/2.2/topics/settings/
 
 For the full list of settings and their values, see
-https://docs.djangoproject.com/en/1.11/ref/settings/
+https://docs.djangoproject.com/en/2.2/ref/settings/
 """
 
 import os
@@ -17,7 +17,7 @@
 
 
 # Quick-start development settings - unsuitable for production
-# See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/
+# See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/
 
 # SECURITY WARNING: keep the secret key used in production secret!
 SECRET_KEY = '-!v282$zj815_q@htaxcubylo)(l%a+k*-xi78hw*#s2@i86@_'
@@ -90,7 +90,7 @@
 
 
 # Database
-# https://docs.djangoproject.com/en/1.11/ref/settings/#databases
+# https://docs.djangoproject.com/en/2.2/ref/settings/#databases
 
 DATABASES = {
     'default': {
@@ -118,7 +118,7 @@
 
 
 # Password validation
-# https://docs.djangoproject.com/en/1.11/ref/settings/#auth-password-validators
+# https://docs.djangoproject.com/en/2.2/ref/settings/#auth-password-validators
 
 AUTH_PASSWORD_VALIDATORS = [
     {
@@ -137,7 +137,7 @@
 
 
 # Internationalization
-# https://docs.djangoproject.com/en/1.11/topics/i18n/
+# https://docs.djangoproject.com/en/2.2/topics/i18n/
 
 LANGUAGES = (
     ('en-us', 'English'),
@@ -160,7 +160,7 @@
 
 
 # Static files (CSS, JavaScript, Images)
-# https://docs.djangoproject.com/en/1.11/howto/static-files/
+# https://docs.djangoproject.com/en/2.2/howto/static-files/
 
 STATICFILES_DIRS = [
     os.path.join(BASE_DIR, "../node_modules"),
diff --git a/src/backend/wsgi.py b/src/backend/wsgi.py
--- a/src/backend/wsgi.py
+++ b/src/backend/wsgi.py
@@ -4,7 +4,7 @@
 It exposes the WSGI callable as a module-level variable named ``application``.
 
 For more information on this file, see
-https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
+https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
 """
 
 import os

{"golden_diff": "diff --git a/src/backend/settings.py b/src/backend/settings.py\n--- a/src/backend/settings.py\n+++ b/src/backend/settings.py\n@@ -4,10 +4,10 @@\n Generated by 'django-admin startproject' using Django 1.11.11.\n \n For more information on this file, see\n-https://docs.djangoproject.com/en/1.11/topics/settings/\n+https://docs.djangoproject.com/en/2.2/topics/settings/\n \n For the full list of settings and their values, see\n-https://docs.djangoproject.com/en/1.11/ref/settings/\n+https://docs.djangoproject.com/en/2.2/ref/settings/\n \"\"\"\n \n import os\n@@ -17,7 +17,7 @@\n \n \n # Quick-start development settings - unsuitable for production\n-# See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/\n+# See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/\n \n # SECURITY WARNING: keep the secret key used in production secret!\n SECRET_KEY = '-!v282$zj815_q@htaxcubylo)(l%a+k*-xi78hw*#s2@i86@_'\n@@ -90,7 +90,7 @@\n \n \n # Database\n-# https://docs.djangoproject.com/en/1.11/ref/settings/#databases\n+# https://docs.djangoproject.com/en/2.2/ref/settings/#databases\n \n DATABASES = {\n     'default': {\n@@ -118,7 +118,7 @@\n \n \n # Password validation\n-# https://docs.djangoproject.com/en/1.11/ref/settings/#auth-password-validators\n+# https://docs.djangoproject.com/en/2.2/ref/settings/#auth-password-validators\n \n AUTH_PASSWORD_VALIDATORS = [\n     {\n@@ -137,7 +137,7 @@\n \n \n # Internationalization\n-# https://docs.djangoproject.com/en/1.11/topics/i18n/\n+# https://docs.djangoproject.com/en/2.2/topics/i18n/\n \n LANGUAGES = (\n     ('en-us', 'English'),\n@@ -160,7 +160,7 @@\n \n \n # Static files (CSS, JavaScript, Images)\n-# https://docs.djangoproject.com/en/1.11/howto/static-files/\n+# https://docs.djangoproject.com/en/2.2/howto/static-files/\n \n STATICFILES_DIRS = [\n     os.path.join(BASE_DIR, \"../node_modules\"),\ndiff --git a/src/backend/wsgi.py b/src/backend/wsgi.py\n--- a/src/backend/wsgi.py\n+++ b/src/backend/wsgi.py\n@@ -4,7 +4,7 @@\n It exposes the WSGI callable as a module-level variable named ``application``.\n \n For more information on this file, see\n-https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/\n+https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/\n \"\"\"\n \n import os\n", "issue": "Update Readme to use python3.7-dev\nfor Ubuntu it's also required to install python3-dev so we need also to update this too\n", "before_files": [{"content": "\"\"\"\nWSGI config for backend project.\n\nIt exposes the WSGI callable as a module-level variable named ``application``.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/\n\"\"\"\n\nimport os\n\nfrom django.core.wsgi import get_wsgi_application\n\nos.environ.setdefault(\"DJANGO_SETTINGS_MODULE\", \"backend.settings\")\n\napplication = get_wsgi_application()\n", "path": "src/backend/wsgi.py"}, {"content": "\"\"\"\nDjango settings for backend project.\n\nGenerated by 'django-admin startproject' using Django 1.11.11.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.11/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/1.11/ref/settings/\n\"\"\"\n\nimport os\n\n# Build paths inside the project like this: os.path.join(BASE_DIR, ...)\nBASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))\n\n\n# Quick-start development settings - unsuitable for production\n# See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/\n\n# SECURITY WARNING: keep the secret key used in production secret!\nSECRET_KEY = '-!v282$zj815_q@htaxcubylo)(l%a+k*-xi78hw*#s2@i86@_'\n\n# SECURITY WARNING: don't run with debug turned on in production!\nDEBUG = True\n\nALLOWED_HOSTS = [\n    'localhost',\n    '127.0.0.1',\n    '0.0.0.0'\n]\n\n# Needed for webauthn (this is a setting in case the application runs behind a proxy)\nHOSTNAME = 'localhost'\nBASE_URL = 'http://localhost:8000'\n\n# Application definition\n\nINSTALLED_APPS = [\n    'cms.apps.CmsConfig',\n    'gvz_api.apps.GvzApiConfig',\n    'django.contrib.admin',\n    'django.contrib.auth',\n    'django.contrib.contenttypes',\n    'django.contrib.messages',\n    'django.contrib.sessions',\n    'django.contrib.staticfiles',\n    'compressor',\n    'compressor_toolkit',\n    'widget_tweaks',\n    'easy_thumbnails',\n    'filer',\n    'mptt',\n    'rules.apps.AutodiscoverRulesConfig',\n]\n\nMIDDLEWARE = [\n    'django.middleware.security.SecurityMiddleware',\n    'django.contrib.sessions.middleware.SessionMiddleware',\n    'django.middleware.locale.LocaleMiddleware',\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\nROOT_URLCONF = 'backend.urls'\nTHUMBNAIL_HIGH_RESOLUTION = True\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                'backend.context_processors.region_slug_processor',\n            ],\n        },\n    },\n]\n\nWSGI_APPLICATION = 'backend.wsgi.application'\n\n\n# Database\n# https://docs.djangoproject.com/en/1.11/ref/settings/#databases\n\nDATABASES = {\n    'default': {\n        'ENGINE': 'django.db.backends.postgresql_psycopg2',\n        'NAME': 'integreat',\n        'USER': 'integreat',\n        'PASSWORD': 'password',\n        'HOST': 'localhost',\n        'PORT': '5432',\n    }\n}\n\n# Directory for initial database contents\n\nFIXTURE_DIRS = (\n    os.path.join(BASE_DIR, 'cms/fixtures/'),\n)\n\n# Authentication backends\n\nAUTHENTICATION_BACKENDS = (\n    'rules.permissions.ObjectPermissionBackend',\n    'django.contrib.auth.backends.ModelBackend', # this is default\n)\n\n\n# Password validation\n# https://docs.djangoproject.com/en/1.11/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\n# Internationalization\n# https://docs.djangoproject.com/en/1.11/topics/i18n/\n\nLANGUAGES = (\n    ('en-us', 'English'),\n    ('de-de', 'Deutsch'),\n)\n\nLOCALE_PATHS = (\n    os.path.join(BASE_DIR, 'locale'),\n)\n\nLANGUAGE_CODE = 'de-de'\n\nTIME_ZONE = 'UTC'\n\nUSE_I18N = True\n\nUSE_L10N = True\n\nUSE_TZ = True\n\n\n# Static files (CSS, JavaScript, Images)\n# https://docs.djangoproject.com/en/1.11/howto/static-files/\n\nSTATICFILES_DIRS = [\n    os.path.join(BASE_DIR, \"../node_modules\"),\n]\nSTATIC_URL = '/static/'\nSTATIC_ROOT = os.path.join(BASE_DIR, 'cms/static/')\n\n# Login\nLOGIN_URL = '/login'\nLOGIN_REDIRECT_URL = '/'\nLOGOUT_REDIRECT_URL = '/login'\n\n# Miscellaneous\nEMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'\nCSRF_FAILURE_VIEW = 'cms.views.error_handler.csrf_failure'\n\nMEDIA_URL = '/media/'\nMEDIA_ROOT = os.path.join(BASE_DIR, 'media')\nFILER_CANONICAL_URL = 'media/'\n\nLOGGING = {\n    'version': 1,\n    'disable_existing_loggers': False,\n    'handlers': {\n        'console': {\n            'class': 'logging.StreamHandler'\n        },\n    },\n    'loggers': {\n        'django': {\n            'handlers': ['console'],\n            'level': 'WARN',\n            'propagate': True,\n        },\n        'api': {\n            'handlers': ['console'],\n            'level': 'INFO',\n            'propagate': True,\n        },\n        'cms': {\n            'handlers': ['console'],\n            'level': 'INFO',\n            'propagate': True,\n        },\n        'rules': {\n            'handlers': ['console'],\n            'level': 'DEBUG',\n            'propagate': True,\n        },\n    }\n}\n\nSTATICFILES_FINDERS = (\n    'django.contrib.staticfiles.finders.FileSystemFinder',\n    'django.contrib.staticfiles.finders.AppDirectoriesFinder',\n    'compressor.finders.CompressorFinder',\n)\n\nCOMPRESS_CSS_FILTERS = [\n    'compressor.filters.css_default.CssAbsoluteFilter',\n    'compressor.filters.cssmin.CSSMinFilter',\n    'compressor.filters.template.TemplateFilter'\n]\nCOMPRESS_JS_FILTERS = [\n    'compressor.filters.jsmin.JSMinFilter',\n]\nCOMPRESS_PRECOMPILERS = (\n    ('module', 'compressor_toolkit.precompilers.ES6Compiler'),\n    ('css', 'compressor_toolkit.precompilers.SCSSCompiler'),\n)\nCOMPRESS_ENABLED = True\nCOMPRESS_OFFLINE = True\n\n# GVZ (Gemeindeverzeichnis) API URL\nGVZ_API_URL = \"http://gvz.integreat-app.de/api/\"\nGVZ_API_ENABLED = True\n", "path": "src/backend/settings.py"}], "after_files": [{"content": "\"\"\"\nWSGI config for backend project.\n\nIt exposes the WSGI callable as a module-level variable named ``application``.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/\n\"\"\"\n\nimport os\n\nfrom django.core.wsgi import get_wsgi_application\n\nos.environ.setdefault(\"DJANGO_SETTINGS_MODULE\", \"backend.settings\")\n\napplication = get_wsgi_application()\n", "path": "src/backend/wsgi.py"}, {"content": "\"\"\"\nDjango settings for backend project.\n\nGenerated by 'django-admin startproject' using Django 1.11.11.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/2.2/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/2.2/ref/settings/\n\"\"\"\n\nimport os\n\n# Build paths inside the project like this: os.path.join(BASE_DIR, ...)\nBASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))\n\n\n# Quick-start development settings - unsuitable for production\n# See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/\n\n# SECURITY WARNING: keep the secret key used in production secret!\nSECRET_KEY = '-!v282$zj815_q@htaxcubylo)(l%a+k*-xi78hw*#s2@i86@_'\n\n# SECURITY WARNING: don't run with debug turned on in production!\nDEBUG = True\n\nALLOWED_HOSTS = [\n    'localhost',\n    '127.0.0.1',\n    '0.0.0.0'\n]\n\n# Needed for webauthn (this is a setting in case the application runs behind a proxy)\nHOSTNAME = 'localhost'\nBASE_URL = 'http://localhost:8000'\n\n# Application definition\n\nINSTALLED_APPS = [\n    'cms.apps.CmsConfig',\n    'gvz_api.apps.GvzApiConfig',\n    'django.contrib.admin',\n    'django.contrib.auth',\n    'django.contrib.contenttypes',\n    'django.contrib.messages',\n    'django.contrib.sessions',\n    'django.contrib.staticfiles',\n    'compressor',\n    'compressor_toolkit',\n    'widget_tweaks',\n    'easy_thumbnails',\n    'filer',\n    'mptt',\n    'rules.apps.AutodiscoverRulesConfig',\n]\n\nMIDDLEWARE = [\n    'django.middleware.security.SecurityMiddleware',\n    'django.contrib.sessions.middleware.SessionMiddleware',\n    'django.middleware.locale.LocaleMiddleware',\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\nROOT_URLCONF = 'backend.urls'\nTHUMBNAIL_HIGH_RESOLUTION = True\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                'backend.context_processors.region_slug_processor',\n            ],\n        },\n    },\n]\n\nWSGI_APPLICATION = 'backend.wsgi.application'\n\n\n# Database\n# https://docs.djangoproject.com/en/2.2/ref/settings/#databases\n\nDATABASES = {\n    'default': {\n        'ENGINE': 'django.db.backends.postgresql_psycopg2',\n        'NAME': 'integreat',\n        'USER': 'integreat',\n        'PASSWORD': 'password',\n        'HOST': 'localhost',\n        'PORT': '5432',\n    }\n}\n\n# Directory for initial database contents\n\nFIXTURE_DIRS = (\n    os.path.join(BASE_DIR, 'cms/fixtures/'),\n)\n\n# Authentication backends\n\nAUTHENTICATION_BACKENDS = (\n    'rules.permissions.ObjectPermissionBackend',\n    'django.contrib.auth.backends.ModelBackend', # this is default\n)\n\n\n# Password validation\n# https://docs.djangoproject.com/en/2.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\n# Internationalization\n# https://docs.djangoproject.com/en/2.2/topics/i18n/\n\nLANGUAGES = (\n    ('en-us', 'English'),\n    ('de-de', 'Deutsch'),\n)\n\nLOCALE_PATHS = (\n    os.path.join(BASE_DIR, 'locale'),\n)\n\nLANGUAGE_CODE = 'de-de'\n\nTIME_ZONE = 'UTC'\n\nUSE_I18N = True\n\nUSE_L10N = True\n\nUSE_TZ = True\n\n\n# Static files (CSS, JavaScript, Images)\n# https://docs.djangoproject.com/en/2.2/howto/static-files/\n\nSTATICFILES_DIRS = [\n    os.path.join(BASE_DIR, \"../node_modules\"),\n]\nSTATIC_URL = '/static/'\nSTATIC_ROOT = os.path.join(BASE_DIR, 'cms/static/')\n\n# Login\nLOGIN_URL = '/login'\nLOGIN_REDIRECT_URL = '/'\nLOGOUT_REDIRECT_URL = '/login'\n\n# Miscellaneous\nEMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'\nCSRF_FAILURE_VIEW = 'cms.views.error_handler.csrf_failure'\n\nMEDIA_URL = '/media/'\nMEDIA_ROOT = os.path.join(BASE_DIR, 'media')\nFILER_CANONICAL_URL = 'media/'\n\nLOGGING = {\n    'version': 1,\n    'disable_existing_loggers': False,\n    'handlers': {\n        'console': {\n            'class': 'logging.StreamHandler'\n        },\n    },\n    'loggers': {\n        'django': {\n            'handlers': ['console'],\n            'level': 'WARN',\n            'propagate': True,\n        },\n        'api': {\n            'handlers': ['console'],\n            'level': 'INFO',\n            'propagate': True,\n        },\n        'cms': {\n            'handlers': ['console'],\n            'level': 'INFO',\n            'propagate': True,\n        },\n        'rules': {\n            'handlers': ['console'],\n            'level': 'DEBUG',\n            'propagate': True,\n        },\n    }\n}\n\nSTATICFILES_FINDERS = (\n    'django.contrib.staticfiles.finders.FileSystemFinder',\n    'django.contrib.staticfiles.finders.AppDirectoriesFinder',\n    'compressor.finders.CompressorFinder',\n)\n\nCOMPRESS_CSS_FILTERS = [\n    'compressor.filters.css_default.CssAbsoluteFilter',\n    'compressor.filters.cssmin.CSSMinFilter',\n    'compressor.filters.template.TemplateFilter'\n]\nCOMPRESS_JS_FILTERS = [\n    'compressor.filters.jsmin.JSMinFilter',\n]\nCOMPRESS_PRECOMPILERS = (\n    ('module', 'compressor_toolkit.precompilers.ES6Compiler'),\n    ('css', 'compressor_toolkit.precompilers.SCSSCompiler'),\n)\nCOMPRESS_ENABLED = True\nCOMPRESS_OFFLINE = True\n\n# GVZ (Gemeindeverzeichnis) API URL\nGVZ_API_URL = \"http://gvz.integreat-app.de/api/\"\nGVZ_API_ENABLED = True\n", "path": "src/backend/settings.py"}]}