In my Django application I have a module installed via pip
. I need to override some method located in site-packages/module/views.py
. I assume, I need to import this module in my custom modules directory, and simply inherit class and override method.
What is the best approach? How can I do it correctly without writing code in site-packages
directory?