Loading kodo_sso/management.py +12 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,18 @@ class ManagementUtility(management.ManagementUtility): ); sys.exit(1) excluded_cmds = getattr(settings, 'EXCLUDED_COMMANDS') if excluded_cmds and subcommand in excluded_cmds: class DummyCommand(Command): def run(self, **opts): sys.stderr.write( "running '{0}' is disallowed by the package " "configuration.\n" .format(subcommand) ); sys.exit(1) return DummyCommand() class RunserverCommand(Command): def run(self, **options): if not hasattr(settings, 'SITE_URL'): Loading kodo_sso/settings/production.py +5 −0 Original line number Diff line number Diff line Loading @@ -6,4 +6,9 @@ # from . import * EXCLUDED_COMMANDS = [ 'startproject', 'startapp', 'makemigrations', ] load_site(globals(), '/etc/kodo-sso/conf.d/*') Loading
kodo_sso/management.py +12 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,18 @@ class ManagementUtility(management.ManagementUtility): ); sys.exit(1) excluded_cmds = getattr(settings, 'EXCLUDED_COMMANDS') if excluded_cmds and subcommand in excluded_cmds: class DummyCommand(Command): def run(self, **opts): sys.stderr.write( "running '{0}' is disallowed by the package " "configuration.\n" .format(subcommand) ); sys.exit(1) return DummyCommand() class RunserverCommand(Command): def run(self, **options): if not hasattr(settings, 'SITE_URL'): Loading
kodo_sso/settings/production.py +5 −0 Original line number Diff line number Diff line Loading @@ -6,4 +6,9 @@ # from . import * EXCLUDED_COMMANDS = [ 'startproject', 'startapp', 'makemigrations', ] load_site(globals(), '/etc/kodo-sso/conf.d/*')