From 54441488dcaced5edc537b73802c99ae5d83d2b4 Mon Sep 17 00:00:00 2001 From: John Eskew Date: Fri, 20 Oct 2017 07:59:32 -0400 Subject: [PATCH] Add comments to docstring forbidding additional code. --- cms/startup.py | 3 +++ lms/startup.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/cms/startup.py b/cms/startup.py index 17ac47474e..29b11e1716 100644 --- a/cms/startup.py +++ b/cms/startup.py @@ -23,6 +23,9 @@ settings.INSTALLED_APPS # pylint: disable=pointless-statement def run(): """ Executed during django startup + + NOTE: DO **NOT** add additional code to this method or this file! The Platform Team + is moving all startup code to more standard locations using Django best practices. """ django_db_models_options.patch() diff --git a/lms/startup.py b/lms/startup.py index 169976743c..05b4ff18f9 100644 --- a/lms/startup.py +++ b/lms/startup.py @@ -32,6 +32,9 @@ log = logging.getLogger(__name__) def run(): """ Executed during django startup + + NOTE: DO **NOT** add additional code to this method or this file! The Platform Team + is moving all startup code to more standard locations using Django best practices. """ django_db_models_options.patch()