'Returns the static files serving handler.'

def get_handler(self, *args, **options):

    handler = super(Command, self).get_handler(*args, **options)
    use_static_handler = options.get('use_static_handler', True)
    insecure_serving = options.get('insecure_serving', False)
    if ((settings.DEBUG and use_static_handler) or (use_static_handler and insecure_serving)):
        handler = StaticFilesHandler(handler)
    return handler
