(request, domain, app_id)
return response
See ApplicationBase.create_jadjar_from_build_files

    This is the only view that will actually be called
    in the process of downloading a complete CommCare.jar
    build (i.e. over the air to a phone).
See ApplicationBase.create_jadjar_from_build_files
See ApplicationBase . create_jadjar_from_build_files
def download_jar(request, domain, app_id):
    """
    See ApplicationBase.create_jadjar_from_build_files

    This is the only view that will actually be called
    in the process of downloading a complete CommCare.jar
    build (i.e. over the air to a phone).

    """
    response = HttpResponse(content_type="application/java-archive")
    app = request.app
    if not app.copy_of:
        app.set_media_versions()
    _, jar = app.create_jadjar_from_build_files()
    set_file_download(response, 'CommCare.jar')
    response['Content-Length'] = len(jar)
    try:
        response.write(jar)
    except Exception:
        messages.error(request, BAD_BUILD_MESSAGE)
        return back_to_main(request, domain, app_id=app_id)
    return response
def download_jar ( request , domain , app_id ) : response = HttpResponse ( content_type = "application/java-archive" ) app = request . app if not app . copy_of : app . set_media_versions ( ) _ , jar = app . create_jadjar_from_build_files ( ) set_file_download ( response , 'CommCare.jar' ) response [ 'Content-Length' ] = len ( jar ) try : response . write ( jar ) except Exception : messages . error ( request , BAD_BUILD_MESSAGE ) return back_to_main ( request , domain , app_id = app_id ) return response