Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果当前的第三方库不能满足你的要求,如何覆盖它并做一些定制?
在rails中,库来自gem,只需要在配置文件中,如何将库的源代码移动到app文件夹?
使用 Django,您可以将应用程序的副本放入项目目录并进行适当的修改。我将假设 Rails 可以类似地工作。
Rails:将修改后的版本放到./vendor. 它已经处于加载顺序,比系统范围内安装的库具有更高的优先级
./vendor
Django(和一般的python):为这些库创建一些子目录并将其添加到PYTHONPATH环境变量中,在其他值之前。
PYTHONPATH