我们有一个用于 django 应用程序的持续集成环境。
有时我们需要对模型进行修改并迁移数据库中的更改(pre/pro)。
在我们的钩子中,我们这样做:
python manage.py migrate
Run Code Online (Sandbox Code Playgroud)
它获取之前在本地开发环境中创建的迁移并应用它们。但我注意到有时迁移会要求用户交互。IE:
makemigrations(本地发展)
(project-name-develop)lostcitizen@project-name:~/dev/project-name/project-name.git$ ./manage.py makemigrations
Did you rename publication.writer to publication.author (a ForeignKey)? [y/N] y
Migrations for 'publications':
0017_auto_20151117_1050.py:
- Rename field writer on publication to author
Run Code Online (Sandbox Code Playgroud)
迁移(远程)
(project-name-develop)lostcitizen@project-name:~/dev/project-name/project-name.git$ ./manage.py migrate
Skipping creation of NoticeTypes as notification app not found
Operations to perform:
Synchronize unmigrated apps: landing, about, publications, [...]
Synchronizing apps without migrations:
Creating tables...
Running deferred SQL...
Installing custom SQL...
Running migrations:
Rendering model states... DONE
Applying publications.0016_auto_20151116_1650... OK
Applying …Run Code Online (Sandbox Code Playgroud) 我正在开发一个依赖于第三方库的 kivy 应用程序。
我如何在 android 中设置/安装这个库以便能够在 kivy 启动器中测试我的应用程序?是否可以或者我必须使用 buildozer 编译应用程序?
问候,