prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Use Werkzeug
  Add django-extensions and Werkzeug to local requirements, and use runserver_plus in docker-entrypoint.sh.
  It is a lot faster than regular runserver in Docker.
  
  </issue>
  <code>
  [start of Example-Project/src/core/settings/local.py]
  1 #!/usr/bin/env python
  2 # -*- coding: utf-8 -*-
  3 
  4 """
  5 Write local settings here, or override base settings
  6 """
  7 from __future__ import absolute_import, unicode_literals
  8 
  9 from core.settings.base import *  # NOQA
  10 
  11 
  12 DEBUG = True
  13 TEMPLATES[0]['OPTIONS']['debug'] = DEBUG
  14 
  15 DEBUG_TOOLBAR_PATCH_SETTINGS = False
  16 
  17 # Add django debug toolbar when using local version
  18 INSTALLED_APPS += [
  19     'debug_toolbar',
  20 ]
  21 
  22 MIDDLEWARE_CLASSES += [
  23     'debug_toolbar.middleware.DebugToolbarMiddleware',
  24 ]
  25 
  26 # Allow weak local passwords
  27 AUTH_PASSWORD_VALIDATORS = []
  28 
  29 INTERNAL_IPS = get_env('INTERNAL_IPS', default="").split(',')
  30 
  31 
  32 # Allow django-debug-bar under docker
  33 def show_toolbar(request):
  34     # https://gist.github.com/douglasmiranda/9de51aaba14543851ca3
  35     return not request.is_ajax()
  36 
  37 DEBUG_TOOLBAR_CONFIG = {
  38     'SHOW_TOOLBAR_CALLBACK': 'core.settings.local.show_toolbar',
  39 }
  40
  [end of Example-Project/src/core/settings/local.py]
  [start of {{cookiecutter.project_name}}/src/core/settings/local.py]
  1 #!/usr/bin/env python
  2 # -*- coding: utf-8 -*-
  3 
  4 """
  5 Write local settings here, or override base settings
  6 """
  7 from __future__ import absolute_import, unicode_literals
  8 
  9 from core.settings.base import *  # NOQA
  10 
  11 
  12 DEBUG = True
  13 TEMPLATES[0]['OPTIONS']['debug'] = DEBUG
  14 
  15 DEBUG_TOOLBAR_PATCH_SETTINGS = False
  16 
  17 # Add django debug toolbar when using local version
  18 INSTALLED_APPS += [
  19     'debug_toolbar',
  20 ]
  21 
  22 MIDDLEWARE_CLASSES += [
  23     'debug_toolbar.middleware.DebugToolbarMiddleware',
  24 ]
  25 
  26 # Allow weak local passwords
  27 AUTH_PASSWORD_VALIDATORS = []
  28 
  29 INTERNAL_IPS = get_env('INTERNAL_IPS', default="").split(',')
  30 
  31 
  32 # Allow django-debug-bar under docker
  33 def show_toolbar(request):
  34     # https://gist.github.com/douglasmiranda/9de51aaba14543851ca3
  35     return not request.is_ajax()
  36 
  37 DEBUG_TOOLBAR_CONFIG = {
  38     'SHOW_TOOLBAR_CALLBACK': 'core.settings.local.show_toolbar',
  39 }
  40
  [end of {{cookiecutter.project_name}}/src/core/settings/local.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/Example-Project/src/core/settings/local.py b/Example-Project/src/core/settings/local.py
  --- a/Example-Project/src/core/settings/local.py
  +++ b/Example-Project/src/core/settings/local.py
  @@ -17,6 +17,7 @@
   # Add django debug toolbar when using local version
   INSTALLED_APPS += [
       'debug_toolbar',
  +    'django_extensions',
   ]
   
   MIDDLEWARE_CLASSES += [
  diff --git a/{{cookiecutter.project_name}}/src/core/settings/local.py b/{{cookiecutter.project_name}}/src/core/settings/local.py
  --- a/{{cookiecutter.project_name}}/src/core/settings/local.py
  +++ b/{{cookiecutter.project_name}}/src/core/settings/local.py
  @@ -17,6 +17,7 @@
   # Add django debug toolbar when using local version
   INSTALLED_APPS += [
       'debug_toolbar',
  +    'django_extensions',
   ]
   
   MIDDLEWARE_CLASSES += [
  
verification_info: {"golden_diff": "diff --git a/Example-Project/src/core/settings/local.py b/Example-Project/src/core/settings/local.py\n--- a/Example-Project/src/core/settings/local.py\n+++ b/Example-Project/src/core/settings/local.py\n@@ -17,6 +17,7 @@\n # Add django debug toolbar when using local version\n INSTALLED_APPS += [\n     'debug_toolbar',\n+    'django_extensions',\n ]\n \n MIDDLEWARE_CLASSES += [\ndiff --git a/{{cookiecutter.project_name}}/src/core/settings/local.py b/{{cookiecutter.project_name}}/src/core/settings/local.py\n--- a/{{cookiecutter.project_name}}/src/core/settings/local.py\n+++ b/{{cookiecutter.project_name}}/src/core/settings/local.py\n@@ -17,6 +17,7 @@\n # Add django debug toolbar when using local version\n INSTALLED_APPS += [\n     'debug_toolbar',\n+    'django_extensions',\n ]\n \n MIDDLEWARE_CLASSES += [\n", "issue": "Use Werkzeug\nAdd django-extensions and Werkzeug to local requirements, and use runserver_plus in docker-entrypoint.sh.\r\nIt is a lot faster than regular runserver in Docker.\n", "before_files": [{"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\"\"\"\nWrite local settings here, or override base settings\n\"\"\"\nfrom __future__ import absolute_import, unicode_literals\n\nfrom core.settings.base import *  # NOQA\n\n\nDEBUG = True\nTEMPLATES[0]['OPTIONS']['debug'] = DEBUG\n\nDEBUG_TOOLBAR_PATCH_SETTINGS = False\n\n# Add django debug toolbar when using local version\nINSTALLED_APPS += [\n    'debug_toolbar',\n]\n\nMIDDLEWARE_CLASSES += [\n    'debug_toolbar.middleware.DebugToolbarMiddleware',\n]\n\n# Allow weak local passwords\nAUTH_PASSWORD_VALIDATORS = []\n\nINTERNAL_IPS = get_env('INTERNAL_IPS', default=\"\").split(',')\n\n\n# Allow django-debug-bar under docker\ndef show_toolbar(request):\n    # https://gist.github.com/douglasmiranda/9de51aaba14543851ca3\n    return not request.is_ajax()\n\nDEBUG_TOOLBAR_CONFIG = {\n    'SHOW_TOOLBAR_CALLBACK': 'core.settings.local.show_toolbar',\n}\n", "path": "Example-Project/src/core/settings/local.py"}, {"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\"\"\"\nWrite local settings here, or override base settings\n\"\"\"\nfrom __future__ import absolute_import, unicode_literals\n\nfrom core.settings.base import *  # NOQA\n\n\nDEBUG = True\nTEMPLATES[0]['OPTIONS']['debug'] = DEBUG\n\nDEBUG_TOOLBAR_PATCH_SETTINGS = False\n\n# Add django debug toolbar when using local version\nINSTALLED_APPS += [\n    'debug_toolbar',\n]\n\nMIDDLEWARE_CLASSES += [\n    'debug_toolbar.middleware.DebugToolbarMiddleware',\n]\n\n# Allow weak local passwords\nAUTH_PASSWORD_VALIDATORS = []\n\nINTERNAL_IPS = get_env('INTERNAL_IPS', default=\"\").split(',')\n\n\n# Allow django-debug-bar under docker\ndef show_toolbar(request):\n    # https://gist.github.com/douglasmiranda/9de51aaba14543851ca3\n    return not request.is_ajax()\n\nDEBUG_TOOLBAR_CONFIG = {\n    'SHOW_TOOLBAR_CALLBACK': 'core.settings.local.show_toolbar',\n}\n", "path": "{{cookiecutter.project_name}}/src/core/settings/local.py"}]}