Undocumented
Function | find_command |
Undocumented |
Function | get_command_line_option |
Return the value of a command line option (which should include leading dashes, e.g. '--testrunner') from an argument list. Return None if the option wasn't passed or if the argument list couldn't be parsed. |
Function | get_random_secret_key |
Return a 50 character random string usable as a SECRET_KEY setting value. |
Function | handle_extensions |
Organize multiple extensions that are separated with commas or passed by using --extension/-e multiple times. |
Function | is_ignored_path |
Check if the given path should be ignored or not based on matching one of the glob style ignore_patterns . |
Function | normalize_path_patterns |
Normalize an iterable of glob style patterns based on OS. |
Function | parse_apps_and_model_labels |
No summary |
Function | popen_wrapper |
Friendly wrapper around Popen. |
Organize multiple extensions that are separated with commas or passed by using --extension/-e multiple times.
For example: running 'django-admin makemessages -e js,txt -e xhtml -a' would result in an extension list: ['.js', '.txt', '.xhtml']
>>> handle_extensions(['.html', 'html,js,py,py,py,.py', 'py,.py']) {'.html', '.js', '.py'} >>> handle_extensions(['.html, txt,.tpl']) {'.html', '.tpl', '.txt'}
ignore_patterns
.