I am using django-compress for compression. According to need I want to change on of the functions in ..../dist-packages/compress/utils.py. How can I override this function.
I am using django-compress for compression . According to need I want to change
Share
Monkey patch it. You’ll need to do this before
utilsis imported anywhere else.Alternatively, you could create a new Python module, like this:
Then import that module instead: