prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Fix warning about deprecation of TEMPLATE_DEBUG
  When starting aimmo locally the following message is displayed:
  
  > WARNINGS:
  > ?: (1_8.W001) The standalone TEMPLATE_\* settings were deprecated in Django 1.8 and the TEMPLATES dictionary takes precedence. You must put the values of the following settings into your default TEMPLATES dict: TEMPLATE_DEBUG.
  
  The value in question is in `aimmo/example_project/example_project/settings.py`:
  `TEMPLATE_DEBUG = DEBUG`
  
  The TEMPLATES dictionary _maybe_ the one here `aimmo/players/autoconfig.py` (?):
  
  ```
  'TEMPLATES': [
          {
              'BACKEND': 'django.template.backends.django.DjangoTemplates',
              'APP_DIRS': True,
              'OPTIONS': {
                  'context_processors': [
                      'django.template.context_processors.debug',
                      'django.template.context_processors.request',
                      'django.contrib.auth.context_processors.auth',
                      'django.contrib.messages.context_processors.messages',
                  ]
              }
          }
      ],
  ```
  
  
  </issue>
  <code>
  [start of example_project/example_project/settings.py]
  1 # -*- coding: utf-8 -*-
  2 # Code for Life
  3 #
  4 # Copyright (C) 2015, Ocado Innovation Limited
  5 #
  6 # This program is free software: you can redistribute it and/or modify
  7 # it under the terms of the GNU Affero General Public License as
  8 # published by the Free Software Foundation, either version 3 of the
  9 # License, or (at your option) any later version.
  10 #
  11 # This program is distributed in the hope that it will be useful,
  12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14 # GNU Affero General Public License for more details.
  15 #
  16 # You should have received a copy of the GNU Affero General Public License
  17 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
  18 #
  19 # ADDITIONAL TERMS – Section 7 GNU General Public Licence
  20 #
  21 # This licence does not grant any right, title or interest in any “Ocado” logos,
  22 # trade names or the trademark “Ocado” or any other trademarks or domain names
  23 # owned by Ocado Innovation Limited or the Ocado group of companies or any other
  24 # distinctive brand features of “Ocado” as may be secured from time to time. You
  25 # must not distribute any modification of this program using the trademark
  26 # “Ocado” or claim any affiliation or association with Ocado or its employees.
  27 #
  28 # You are not authorised to use the name Ocado (or any of its trade names) or
  29 # the names of any author or contributor in advertising or for publicity purposes
  30 # pertaining to the distribution of this program, without the prior written
  31 # authorisation of Ocado.
  32 #
  33 # Any propagation, distribution or conveyance of this program must include this
  34 # copyright notice and these terms. You must not misrepresent the origins of this
  35 # program; modified versions of the program must be marked as such and not
  36 # identified as the original program.
  37 '''Django settings for example_project project.'''
  38 import os
  39 
  40 DEBUG = True
  41 TEMPLATE_DEBUG = DEBUG
  42 
  43 DATABASES = {
  44     'default': {
  45         'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
  46         'NAME': os.path.join(os.path.abspath(os.path.dirname(__file__)),'db.sqlite3'),# Or path to database file if using sqlite3.
  47     }
  48 }
  49 
  50 USE_I18N = True
  51 USE_L10N = True
  52 
  53 TIME_ZONE = 'Europe/London'
  54 LANGUAGE_CODE = 'en-gb'
  55 STATIC_ROOT = os.path.join(os.path.dirname(__file__), 'static')
  56 STATIC_URL = '/static/'
  57 SECRET_KEY = 'not-a-secret'
  58 
  59 ROOT_URLCONF = 'django_autoconfig.autourlconf'
  60 
  61 WSGI_APPLICATION = 'example_project.wsgi.application'
  62 
  63 INSTALLED_APPS = (
  64     'django.contrib.admin',
  65     'players',
  66 )
  67 
  68 LOGGING = {
  69     'version': 1,
  70     'disable_existing_loggers': False,
  71     'filters': {
  72         'require_debug_false': {
  73             '()': 'django.utils.log.RequireDebugFalse'
  74         }
  75     },
  76     'handlers': {
  77         'console': {
  78             'level': 'DEBUG',
  79             'class': 'logging.StreamHandler'
  80         },
  81     },
  82     'loggers': {
  83         'views': {
  84             'handlers': ['console'],
  85             'level': 'DEBUG'
  86         },
  87     }
  88 }
  89 
  90 try:
  91     from example_project.local_settings import * # pylint: disable=E0611
  92 except ImportError:
  93     pass
  94 
  95 from django_autoconfig import autoconfig
  96 autoconfig.configure_settings(globals())
  97
  [end of example_project/example_project/settings.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/example_project/settings.py b/example_project/example_project/settings.py
  --- a/example_project/example_project/settings.py
  +++ b/example_project/example_project/settings.py
  @@ -38,7 +38,6 @@
   import os
   
   DEBUG = True
  -TEMPLATE_DEBUG = DEBUG
   
   DATABASES = {
       'default': {
  
verification_info: {"golden_diff": "diff --git a/example_project/example_project/settings.py b/example_project/example_project/settings.py\n--- a/example_project/example_project/settings.py\n+++ b/example_project/example_project/settings.py\n@@ -38,7 +38,6 @@\n import os\n \n DEBUG = True\n-TEMPLATE_DEBUG = DEBUG\n \n DATABASES = {\n     'default': {\n", "issue": "Fix warning about deprecation of TEMPLATE_DEBUG\nWhen starting aimmo locally the following message is displayed:\n\n> WARNINGS:\n> ?: (1_8.W001) The standalone TEMPLATE_\\* settings were deprecated in Django 1.8 and the TEMPLATES dictionary takes precedence. You must put the values of the following settings into your default TEMPLATES dict: TEMPLATE_DEBUG.\n\nThe value in question is in `aimmo/example_project/example_project/settings.py`:\n`TEMPLATE_DEBUG = DEBUG`\n\nThe TEMPLATES dictionary _maybe_ the one here `aimmo/players/autoconfig.py` (?):\n\n```\n'TEMPLATES': [\n        {\n            'BACKEND': 'django.template.backends.django.DjangoTemplates',\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```\n\n", "before_files": [{"content": "# -*- coding: utf-8 -*-\n# Code for Life\n#\n# Copyright (C) 2015, Ocado Innovation Limited\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Affero General Public License as\n# published by the Free Software Foundation, either version 3 of the\n# License, or (at your option) any later version.\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n# GNU Affero General Public License for more details.\n#\n# You should have received a copy of the GNU Affero General Public License\n# along with this program.  If not, see <http://www.gnu.org/licenses/>.\n#\n# ADDITIONAL TERMS \u2013 Section 7 GNU General Public Licence\n#\n# This licence does not grant any right, title or interest in any \u201cOcado\u201d logos,\n# trade names or the trademark \u201cOcado\u201d or any other trademarks or domain names\n# owned by Ocado Innovation Limited or the Ocado group of companies or any other\n# distinctive brand features of \u201cOcado\u201d as may be secured from time to time. You\n# must not distribute any modification of this program using the trademark\n# \u201cOcado\u201d or claim any affiliation or association with Ocado or its employees.\n#\n# You are not authorised to use the name Ocado (or any of its trade names) or\n# the names of any author or contributor in advertising or for publicity purposes\n# pertaining to the distribution of this program, without the prior written\n# authorisation of Ocado.\n#\n# Any propagation, distribution or conveyance of this program must include this\n# copyright notice and these terms. You must not misrepresent the origins of this\n# program; modified versions of the program must be marked as such and not\n# identified as the original program.\n'''Django settings for example_project project.'''\nimport os\n\nDEBUG = True\nTEMPLATE_DEBUG = DEBUG\n\nDATABASES = {\n    'default': {\n        'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.\n        'NAME': os.path.join(os.path.abspath(os.path.dirname(__file__)),'db.sqlite3'),# Or path to database file if using sqlite3.\n    }\n}\n\nUSE_I18N = True\nUSE_L10N = True\n\nTIME_ZONE = 'Europe/London'\nLANGUAGE_CODE = 'en-gb'\nSTATIC_ROOT = os.path.join(os.path.dirname(__file__), 'static')\nSTATIC_URL = '/static/'\nSECRET_KEY = 'not-a-secret'\n\nROOT_URLCONF = 'django_autoconfig.autourlconf'\n\nWSGI_APPLICATION = 'example_project.wsgi.application'\n\nINSTALLED_APPS = (\n    'django.contrib.admin',\n    'players',\n)\n\nLOGGING = {\n    'version': 1,\n    'disable_existing_loggers': False,\n    'filters': {\n        'require_debug_false': {\n            '()': 'django.utils.log.RequireDebugFalse'\n        }\n    },\n    'handlers': {\n        'console': {\n            'level': 'DEBUG',\n            'class': 'logging.StreamHandler'\n        },\n    },\n    'loggers': {\n        'views': {\n            'handlers': ['console'],\n            'level': 'DEBUG'\n        },\n    }\n}\n\ntry:\n    from example_project.local_settings import * # pylint: disable=E0611\nexcept ImportError:\n    pass\n\nfrom django_autoconfig import autoconfig\nautoconfig.configure_settings(globals())\n", "path": "example_project/example_project/settings.py"}]}