标注平台🍆🍆🍆
基本思路是通过virtualenvwrapper在本地创建一个独立的env环境,
略
cd /tmp
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
pip install --ignore-installed six virtualenvwrapper
source /usr/local/bin/virtualenvwrapper.sh
mkvirtualenv character --python=python3
workon character
pip install -r requirements.txt
下载测试数据 all_data_fixtures.json 链接:https://pan.baidu.com/s/1ht5dURE 密码:tci2
测试数据admin。 用户admin 密码admin123
python manage.py migrate
python manage.py loaddata ./all_data_fixtures.json
把下列环境变量加入你的rc文件中,
export AWS_ACCESS_KEY=<input>
export AWS_SECRET_KEY=<input>
python manage.py runserver
cmd> python manage.py test
celery -A markrect worker --loglevel=info
celery -A markrect beat -l debug
安装gevent 简介
pip install gevent
/root/.virtualenvs/markrect2/bin/gunicorn -c /root/markrect/gunicorn.conf.py markrect.wsgi:application