导出
执行./manage.py dumpdata -a > data.json即可完成导出
导入
1. ./manage.py loaddata 的方式导入
优点:
* 方便,不容易出问题
缺点:
* 性能慢
2. 自定义脚本导入
from collections import defaultdict
from django.core import serializers
from django.
安装最新版pyinstaller
pip install git+https://github.com/pyinstaller/pyinstaller.git
把需要的qml文件加入data文件,并进行打包
pyinstaller --add-data "main.qml;./" -F main.py
安装最新版pyinstaller
pip install git+https://github.com/pyinstaller/pyinstaller.git
把需要的qml文件加入data文件,并进行打包
pyinstaller --add-data "main.qml;./" -F main.py
gradle打包错误
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':sqlite3_flutter_libs:generateDebugRFile'.
Could not resolve all files for configuration ':sqlite3_flutter_libs:debugCompileClasspath'
gradle打包错误
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':sqlite3_flutter_libs:generateDebugRFile'.
Could not resolve all files for configuration ':sqlite3_flutter_libs:debugCompileClasspath'