jiayouzl
V2EX  ›  Django

请教下大家,Django 的 tests 测试模块,如何不创建新从测试数据库,而是直接操作生产环境数据库谢谢!

  •  
  •   jiayouzl · Oct 23, 2023 · 4338 views
    This topic created in 964 days ago, the information mentioned may be changed or developed.

    一个不大不小的 bug 想要调试,多表联合的调试,新创建数据库好麻烦,如何直接使用生产环境直接测试?要如何设置?谢谢

    itechify
        1
    itechify  
    PRO
       Oct 23, 2023 via Android
    兄弟,你的想法很危险
    Zenon
        2
    Zenon  
       Oct 23, 2023
    真的勇士
    jiayouzl
        3
    jiayouzl  
    OP
       Oct 23, 2023
    查了一圈好像不知道这样操作....老老实实在新建测试数据中...............
    nulIptr
        4
    nulIptr  
       Oct 23, 2023
    这比前几天想在生产环境打洞那哥们还牛逼。。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2899 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 10:29 · PVG 18:29 · LAX 03:29 · JFK 06:29
    ♥ Do have faith in what you're doing.