Loading kodo_sso/management.py +12 −3 Original line number Diff line number Diff line import os import sys import logging import importlib from django.core import management Loading @@ -8,8 +9,16 @@ def main(): if not os.environ.get('DJANGO_AUTO_COMPLETE'): log_level = os.environ.get('LOGGING_LEVEL', 'INFO').upper() logging.basicConfig(level=getattr(logging, log_level)) settings = importlib.import_module( os.environ.setdefault( "DJANGO_SETTINGS_MODULE", "kodo_sso.settings.production" ) ) # I do not believe any command other than 'runserver' uses the secret key, # and that command is only for development. if not hasattr(settings, 'SECRET_KEY') or not settings.SECRET_KEY: settings.SECRET_KEY = 'a' management.ManagementUtility(sys.argv).execute() Loading
kodo_sso/management.py +12 −3 Original line number Diff line number Diff line import os import sys import logging import importlib from django.core import management Loading @@ -8,8 +9,16 @@ def main(): if not os.environ.get('DJANGO_AUTO_COMPLETE'): log_level = os.environ.get('LOGGING_LEVEL', 'INFO').upper() logging.basicConfig(level=getattr(logging, log_level)) settings = importlib.import_module( os.environ.setdefault( "DJANGO_SETTINGS_MODULE", "kodo_sso.settings.production" ) ) # I do not believe any command other than 'runserver' uses the secret key, # and that command is only for development. if not hasattr(settings, 'SECRET_KEY') or not settings.SECRET_KEY: settings.SECRET_KEY = 'a' management.ManagementUtility(sys.argv).execute()