github官方链接:https://github.com/doccano/doccano
官方指导:https://doccano.github.io/doccano/
https://zhuanlan.zhihu.com/p/371752234
Docker
As a one-time setup, create a Docker container as follows:
docker pull doccano/doccano
-e username=“ritchie”: 设置环境变量;
–volume , -v: 绑定一个卷
-p: 指定端口映射,格式为:主机(宿主)端口:容器端口
docker container create --name doccano \
-e "ADMIN_USERNAME=admin" \
-e "[email protected]" \
-e "ADMIN_PASSWORD=password" \
-v doccano-db:/data \
-p 8000:8000 doccano/doccano
Next, start doccano by running the container:
docker container start doccano
To stop the container, run docker container stop doccano -t 5. All data created in the container will persist across restarts.
http://127.0.0.1:8000/
如果是服务器部署,此处换成服务器的ip,注意端口要先开通
使用参考
https://zhuanlan.zhihu.com/p/371752234
https://cloud.tencent.com/developer/article/2056226
https://www.sqlite.org/download.html
下载圈起来这两个,然后解压,拷贝到一个文件夹
pip install doccano
# Initialize database.
doccano init
# Create a super user.
doccano createuser --username admin --password pass
# Start a web server.
doccano webserver --port 8000
上述过程可能报错如下
windows /mac/linux django错误 sqlite3.OperationalError: no such function: JSON_VALID
http://www.chenxm.cc/article/1349.html.html
把第一步 下下的sqlite,拷贝到python目录下
In another terminal, run the following command:
# Start the task queue to handle file upload/download.
doccano task