MCPcopy
hub / github.com/django/django / handle_default_options

Function handle_default_options

django/core/management/base.py:92–101  ·  view source on GitHub ↗

Include any default options that all commands should accept here so that ManagementUtility can handle them before searching for user commands.

(options)

Source from the content-addressed store, hash-verified

90
91
92def handle_default_options(options):
93 """
94 Include any default options that all commands should accept here
95 so that ManagementUtility can handle them before searching for
96 user commands.
97 """
98 if options.settings:
99 os.environ["DJANGO_SETTINGS_MODULE"] = options.settings
100 if options.pythonpath:
101 sys.path.insert(0, options.pythonpath)
102
103
104def no_translations(handle_func):

Callers 2

executeMethod · 0.90
run_from_argvMethod · 0.85

Calls 1

insertMethod · 0.80

Tested by

no test coverage detected