描述你的问题
阿里云ACE上如何运行django的migrations?,本地直接运行python manage.py migrations
来创建数据库,但是在ACE上应该如何操作呢?怎么能够同步本地和ACE上面的数据库
贴上相关代码
贴上报错信息
贴上相关截图
已经尝试过哪些方法仍然没解决(附上相关链接)
大家讲道理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
巴扎黑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.