prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Doublon pour les logs en couleur dans l'env de dev
  Sur mon environnement de dev, les logs en couleur apparaissent en double : dans leur version couleur et puis dans leur version standard.
  
  ![image](https://user-images.githubusercontent.com/6664636/132962287-3983d73d-dae7-4f95-b7c1-ed86c63c51ea.png)
  
  OS : Ubuntu Budgie 20.04
  
  </issue>
  <code>
  [start of zds/settings/dev.py]
  1 from colorlog import ColoredFormatter
  2 
  3 from .abstract_base import *
  4 
  5 DEBUG = True
  6 
  7 # NOTE: Can be removed once Django 3 is used
  8 ALLOWED_HOSTS = [".localhost", "127.0.0.1", "[::1]"]
  9 
  10 INSTALLED_APPS += (
  11     "debug_toolbar",
  12     "django_extensions",
  13 )
  14 
  15 MIDDLEWARE = (
  16     "debug_toolbar.middleware.DebugToolbarMiddleware",
  17     "zds.middlewares.nocacheindevmiddleware.NoCacheInDevMiddleware",
  18 ) + MIDDLEWARE
  19 
  20 LOGGING = {
  21     "version": 1,
  22     "disable_existing_loggers": False,
  23     "formatters": {
  24         "verbose": {
  25             "()": ColoredFormatter,
  26             "format": "%(log_color)s %(levelname)s %(reset)s %(bold_black)s%(name)s%(reset)s %(message)s",
  27             "log_colors": {
  28                 "DEBUG": "fg_white,bg_black",
  29                 "INFO": "fg_black,bg_bold_white",
  30                 "WARNING": "fg_black,bg_bold_yellow",
  31                 "ERROR": "fg_bold_white,bg_bold_red",
  32                 "CRITICAL": "fg_bold_white,bg_bold_red",
  33             },
  34         },
  35         "django.server": {
  36             "()": ColoredFormatter,
  37             "format": "%(log_color)s%(message)s",
  38             "log_colors": {
  39                 "INFO": "bold_black",
  40                 "WARNING": "bold_yellow",
  41                 "ERROR": "bold_red",
  42                 "CRITICAL": "bold_red",
  43             },
  44         },
  45     },
  46     "handlers": {
  47         "console": {
  48             "level": "DEBUG",
  49             "class": "logging.StreamHandler",
  50             "formatter": "verbose",
  51         },
  52         "django.server": {
  53             "level": "DEBUG",
  54             "class": "logging.StreamHandler",
  55             "formatter": "django.server",
  56         },
  57     },
  58     "loggers": {
  59         "django": {
  60             "level": "INFO",
  61             "handlers": ["console"],
  62         },
  63         "django.server": {
  64             "level": "INFO",
  65             "handlers": ["django.server"],
  66             "propagate": False,
  67         },
  68         "zds": {
  69             "level": "INFO",
  70             "handlers": ["console"],
  71         },
  72     },
  73 }
  74 
  75 ZDS_APP["site"]["url"] = "http://127.0.0.1:8000"
  76 ZDS_APP["site"]["dns"] = "127.0.0.1:8000"
  77 
  78 ZDS_APP["very_top_banner"] = {
  79     "background_color": "#666",
  80     "border_color": "#353535",
  81     "color": "white",
  82     "message": "Version locale",
  83     "slug": "version-locale",
  84 }
  85
  [end of zds/settings/dev.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/zds/settings/dev.py b/zds/settings/dev.py
  --- a/zds/settings/dev.py
  +++ b/zds/settings/dev.py
  @@ -55,10 +55,12 @@
               "formatter": "django.server",
           },
       },
  +    "root": {
  +        "handlers": ["console"],
  +    },
       "loggers": {
           "django": {
               "level": "INFO",
  -            "handlers": ["console"],
           },
           "django.server": {
               "level": "INFO",
  @@ -67,7 +69,6 @@
           },
           "zds": {
               "level": "INFO",
  -            "handlers": ["console"],
           },
       },
   }
  
verification_info: {"golden_diff": "diff --git a/zds/settings/dev.py b/zds/settings/dev.py\n--- a/zds/settings/dev.py\n+++ b/zds/settings/dev.py\n@@ -55,10 +55,12 @@\n             \"formatter\": \"django.server\",\n         },\n     },\n+    \"root\": {\n+        \"handlers\": [\"console\"],\n+    },\n     \"loggers\": {\n         \"django\": {\n             \"level\": \"INFO\",\n-            \"handlers\": [\"console\"],\n         },\n         \"django.server\": {\n             \"level\": \"INFO\",\n@@ -67,7 +69,6 @@\n         },\n         \"zds\": {\n             \"level\": \"INFO\",\n-            \"handlers\": [\"console\"],\n         },\n     },\n }\n", "issue": "Doublon pour les logs en couleur dans l'env de dev\nSur mon environnement de dev, les logs en couleur apparaissent en double : dans leur version couleur et puis dans leur version standard.\r\n\r\n![image](https://user-images.githubusercontent.com/6664636/132962287-3983d73d-dae7-4f95-b7c1-ed86c63c51ea.png)\r\n\r\nOS : Ubuntu Budgie 20.04\n", "before_files": [{"content": "from colorlog import ColoredFormatter\n\nfrom .abstract_base import *\n\nDEBUG = True\n\n# NOTE: Can be removed once Django 3 is used\nALLOWED_HOSTS = [\".localhost\", \"127.0.0.1\", \"[::1]\"]\n\nINSTALLED_APPS += (\n    \"debug_toolbar\",\n    \"django_extensions\",\n)\n\nMIDDLEWARE = (\n    \"debug_toolbar.middleware.DebugToolbarMiddleware\",\n    \"zds.middlewares.nocacheindevmiddleware.NoCacheInDevMiddleware\",\n) + MIDDLEWARE\n\nLOGGING = {\n    \"version\": 1,\n    \"disable_existing_loggers\": False,\n    \"formatters\": {\n        \"verbose\": {\n            \"()\": ColoredFormatter,\n            \"format\": \"%(log_color)s %(levelname)s %(reset)s %(bold_black)s%(name)s%(reset)s %(message)s\",\n            \"log_colors\": {\n                \"DEBUG\": \"fg_white,bg_black\",\n                \"INFO\": \"fg_black,bg_bold_white\",\n                \"WARNING\": \"fg_black,bg_bold_yellow\",\n                \"ERROR\": \"fg_bold_white,bg_bold_red\",\n                \"CRITICAL\": \"fg_bold_white,bg_bold_red\",\n            },\n        },\n        \"django.server\": {\n            \"()\": ColoredFormatter,\n            \"format\": \"%(log_color)s%(message)s\",\n            \"log_colors\": {\n                \"INFO\": \"bold_black\",\n                \"WARNING\": \"bold_yellow\",\n                \"ERROR\": \"bold_red\",\n                \"CRITICAL\": \"bold_red\",\n            },\n        },\n    },\n    \"handlers\": {\n        \"console\": {\n            \"level\": \"DEBUG\",\n            \"class\": \"logging.StreamHandler\",\n            \"formatter\": \"verbose\",\n        },\n        \"django.server\": {\n            \"level\": \"DEBUG\",\n            \"class\": \"logging.StreamHandler\",\n            \"formatter\": \"django.server\",\n        },\n    },\n    \"loggers\": {\n        \"django\": {\n            \"level\": \"INFO\",\n            \"handlers\": [\"console\"],\n        },\n        \"django.server\": {\n            \"level\": \"INFO\",\n            \"handlers\": [\"django.server\"],\n            \"propagate\": False,\n        },\n        \"zds\": {\n            \"level\": \"INFO\",\n            \"handlers\": [\"console\"],\n        },\n    },\n}\n\nZDS_APP[\"site\"][\"url\"] = \"http://127.0.0.1:8000\"\nZDS_APP[\"site\"][\"dns\"] = \"127.0.0.1:8000\"\n\nZDS_APP[\"very_top_banner\"] = {\n    \"background_color\": \"#666\",\n    \"border_color\": \"#353535\",\n    \"color\": \"white\",\n    \"message\": \"Version locale\",\n    \"slug\": \"version-locale\",\n}\n", "path": "zds/settings/dev.py"}]}