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

  2. 贴上相关代码

  3. 贴上报错信息

  4. 贴上相关截图

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

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(2)
大家讲道理

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

巴扎黑

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!