prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Improve documentation of cms.apps (CmsConfig)
  Explain what cms.apps is doing, what CmsConfig is for and add docstrings of the following format:
  ```
  """
  [Summary]
  
  :param [ParamName]: [ParamDescription], defaults to [DefaultParamVal]
  :type [ParamName]: [ParamType](, optional)
  ...
  :raises [ErrorType]: [ErrorDescription]
  ...
  :return: [ReturnDescription]
  :rtype: [ReturnType]
  """
  ```
  
  </issue>
  <code>
  [start of src/cms/apps.py]
  1 """
  2 Django related class representing a config of an app
  3 """
  4 import logging
  5 import sys
  6 from django.conf import settings
  7 from django.apps import AppConfig
  8 
  9 logger = logging.getLogger(__name__)
  10 
  11 class CmsConfig(AppConfig):
  12     """
  13     Class inheriting the django AppConfig
  14     """
  15 
  16     name = 'cms'
  17 
  18     def ready(self):
  19         if settings.SECRET_KEY == '-!v282$zj815_q@htaxcubylo)(l%a+k*-xi78hw*#s2@i86@_' and not settings.DEBUG:
  20             logger.error("You are running the Integreat CMS in production mode. Change the SECRET_KEY in the settings.py!")
  21             sys.exit(1)
  22
  [end of src/cms/apps.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/src/cms/apps.py b/src/cms/apps.py
  --- a/src/cms/apps.py
  +++ b/src/cms/apps.py
  @@ -1,6 +1,3 @@
  -"""
  -Django related class representing a config of an app
  -"""
   import logging
   import sys
   from django.conf import settings
  @@ -10,12 +7,23 @@
   
   class CmsConfig(AppConfig):
       """
  -    Class inheriting the django AppConfig
  +    This class represents the Django-configuration of the backend.
  +
  +    See :class:`django.apps.AppConfig` for more information.
  +
  +    :param name: The name of the app
  +    :type name: str
       """
   
       name = 'cms'
   
       def ready(self):
  +        """
  +        This function gets executed exactly once each time the cms starts. We use it to check wether the secret key was
  +        not changed in production mode and show an error message if this is the case.
  +
  +        See :meth:`django.apps.AppConfig.ready` for more information.
  +        """
           if settings.SECRET_KEY == '-!v282$zj815_q@htaxcubylo)(l%a+k*-xi78hw*#s2@i86@_' and not settings.DEBUG:
               logger.error("You are running the Integreat CMS in production mode. Change the SECRET_KEY in the settings.py!")
               sys.exit(1)
  
verification_info: {"golden_diff": "diff --git a/src/cms/apps.py b/src/cms/apps.py\n--- a/src/cms/apps.py\n+++ b/src/cms/apps.py\n@@ -1,6 +1,3 @@\n-\"\"\"\n-Django related class representing a config of an app\n-\"\"\"\n import logging\n import sys\n from django.conf import settings\n@@ -10,12 +7,23 @@\n \n class CmsConfig(AppConfig):\n     \"\"\"\n-    Class inheriting the django AppConfig\n+    This class represents the Django-configuration of the backend.\n+\n+    See :class:`django.apps.AppConfig` for more information.\n+\n+    :param name: The name of the app\n+    :type name: str\n     \"\"\"\n \n     name = 'cms'\n \n     def ready(self):\n+        \"\"\"\n+        This function gets executed exactly once each time the cms starts. We use it to check wether the secret key was\n+        not changed in production mode and show an error message if this is the case.\n+\n+        See :meth:`django.apps.AppConfig.ready` for more information.\n+        \"\"\"\n         if settings.SECRET_KEY == '-!v282$zj815_q@htaxcubylo)(l%a+k*-xi78hw*#s2@i86@_' and not settings.DEBUG:\n             logger.error(\"You are running the Integreat CMS in production mode. Change the SECRET_KEY in the settings.py!\")\n             sys.exit(1)\n", "issue": "Improve documentation of cms.apps (CmsConfig)\nExplain what cms.apps is doing, what CmsConfig is for and add docstrings of the following format:\r\n```\r\n\"\"\"\r\n[Summary]\r\n\r\n:param [ParamName]: [ParamDescription], defaults to [DefaultParamVal]\r\n:type [ParamName]: [ParamType](, optional)\r\n...\r\n:raises [ErrorType]: [ErrorDescription]\r\n...\r\n:return: [ReturnDescription]\r\n:rtype: [ReturnType]\r\n\"\"\"\r\n```\n", "before_files": [{"content": "\"\"\"\nDjango related class representing a config of an app\n\"\"\"\nimport logging\nimport sys\nfrom django.conf import settings\nfrom django.apps import AppConfig\n\nlogger = logging.getLogger(__name__)\n\nclass CmsConfig(AppConfig):\n    \"\"\"\n    Class inheriting the django AppConfig\n    \"\"\"\n\n    name = 'cms'\n\n    def ready(self):\n        if settings.SECRET_KEY == '-!v282$zj815_q@htaxcubylo)(l%a+k*-xi78hw*#s2@i86@_' and not settings.DEBUG:\n            logger.error(\"You are running the Integreat CMS in production mode. Change the SECRET_KEY in the settings.py!\")\n            sys.exit(1)\n", "path": "src/cms/apps.py"}]}