初始化后设置/更改导轨配置值
我最近引入了一个错误,由于 cache_classes 设置为 false,该错误仅在开发中出现。我想编写一个测试以确保这种情况不会再次发生,并且我尝试通过在测试开始时将cache_classes 设置为 false 来实现这一点。初始化后有什么方法可以更改此设置或任何其他配置值吗?
第二个有点相关的问题:如果我想在控制台中查看 cache_classes 的值(或者任何其他配置值),我将如何做?
I recently introduced a bug that only rears its head in development due to cache_classes being set to false. I'd like to write a test to ensure that doesn't happen again, and I am trying to do so by setting cache_classes to false at the beginning of the test. Is there any way to change this, or any other config value, after initialization?
A second, somewhat related question: If I wanted to see the value of cache_classes (or, again, any other config value) in the console, how would I go about doing that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)