Include any default options that all commands should accept here so that ManagementUtility can handle them before searching for user commands.
(options)
| 90 | |
| 91 | |
| 92 | def 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 | |
| 104 | def no_translations(handle_func): |
no test coverage detected