Provide a means to call logging.captureWarnings after django has been configured. django configures logging to capture warnings and this provides a means to change that if so desired.

Signed-off-by: David Black <dblack@atlassian.com>
when run from the cli ensure that warnings are not captured by logging.

Signed-off-by: David Black <dblack@atlassian.com>
minor style fix up.

Signed-off-by: David Black <dblack@atlassian.com>