V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
coolair
V2EX  ›  问与答

Django 扩展了自带的 Group 字段,如何管理 migrations?

  •  
  •   coolair · Mar 8, 2022 · 831 views
    This topic created in 1515 days ago, the information mentioned may be changed or developed.
    生成的 migrations 文件在虚拟环境 django 库的 auth.migrations 文件夹,不在 git 管理内,导致项目无法部署,如何解决这个问题?
    2 replies    2022-03-08 14:29:29 +08:00
    disk
        1
    disk  
       Mar 8, 2022
    生成的迁移文件默认就在对应 app 目录下,你项目里没有创建 auth/migrations 目录吗?
    coolair
        2
    coolair  
    OP
       Mar 8, 2022
    @disk django.contrib.auth
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2442 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 02:38 · PVG 10:38 · LAX 19:38 · JFK 22:38
    ♥ Do have faith in what you're doing.