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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…