This is my config file
c = get_config() #noqa
def script_post_save(model, os_path, contents_manager, **kwargs):
x = requests.get(‘http://127.0.01:5000/ping’)
c.FileContentsManager.post_save_hook = script_post_save
The code is definitely being on file save because I’m getting an error when I save that says that it is unable to connect to the local host. I have double checked the everything is working on 5000 by hitting it from the browser. Is there something I need to open up to enable the outboud request?