def index_posts(sender, **kwargs): posts = kwargs["instance"] posts_id = posts.id print posts_id print posts.Content print posts.BookTitle data = {"Content": posts.Content, "BookTitle": posts.BookTitle, "User_id": posts.User_id} url = settings.ES_URL + "/however/posts/" + str(posts_id) print data make_put(url, data) print ("Request finished!")