Git Product home page Git Product logo

Comments (3)

yuanzhihao812 avatar yuanzhihao812 commented on July 21, 2024

初始化数据库报错的你解决了吗?这个报错就是docker pull init-db 不存在的一个仓库

from cmdb.

children1987 avatar children1987 commented on July 21, 2024

能说的再清楚些吗?我该如何处理?

from cmdb.

children1987 avatar children1987 commented on July 21, 2024

后来我注释掉了这些代码后,初始化DB成功了:

apps/mgmt/initialize.py:

启动时添加read_all 和 write_all权限

permission, is_new = models.Permission.objects.get_or_create(name="read_all")
permission.alias = "所有可读"
permission.save()

permission, is_new = models.Permission.objects.get_or_create(name="write_all")
permission.alias = "所有可写"
permission.save()

启动时建立所有table api 和 对应的权限

tables = models.Table.objects.all()
for table in tables:
add_table(table)

from cmdb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.