prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN 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]
  """
  ```
  
  --- 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/cms/apps.py`
  Content:
  ```
  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 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()
  
  ```
  
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"}], "after_files": [{"content": "import logging\nimport sys\nfrom django.conf import settings\nfrom django.apps import AppConfig\n\nlogger = logging.getLogger(__name__)\n\nclass CmsConfig(AppConfig):\n    \"\"\"\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", "path": "src/cms/apps.py"}]}