Home  >  Q&A  >  body text

python - 阿里云ACE上如何运行django的migrations?

  1. 描述你的问题
    阿里云ACE上如何运行django的migrations?,本地直接运行python manage.py migrations来创建数据库,但是在ACE上应该如何操作呢?怎么能够同步本地和ACE上面的数据库

  2. 贴上相关代码

  3. 贴上报错信息

  4. 贴上相关截图

  5. 已经尝试过哪些方法仍然没解决(附上相关链接)

黄舟黄舟2765 days ago402

reply all(2)I'll reply

  • 大家讲道理

    大家讲道理2017-04-17 17:13:01

    I also encountered similar problems when using Docker before.
    My solution is to create a page and let python run a script. Execute python manage.py migrations

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-17 17:13:01

    I figured it out today, I’m asking myself some questions.

    In fact, it is to configure the database information provided by ACE in settings.py, name, password, host, port, and then run it locallypython manage.py migrations, because it is actually linked to the ACE database, and the operation is also for the remote database.

    reply
    0
  • Cancelreply