coolair
V2EX  ›  问与答

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

  •  
  •   coolair · Mar 8, 2022 · 899 views
    This topic created in 1551 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   ·   861 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 57ms · UTC 20:25 · PVG 04:25 · LAX 13:25 · JFK 16:25
    ♥ Do have faith in what you're doing.