modify ig handler to work with django