baoliang 352a445198 | ||
---|---|---|
NewMediaMonitoring | ||
backstage | ||
dashboard | ||
graph | ||
management | ||
media | ||
monitor | ||
polls | ||
static | ||
新媒体更新脚本 | ||
.DS_Store | ||
.gitignore | ||
README.md | ||
db.sqlite3 | ||
export_user.py | ||
fabfile.py | ||
fabfile.pyc | ||
get_data_for_mysql_toutiao_article.py | ||
get_data_for_mysql_toutiao_comment.py | ||
get_data_for_mysql_weixin_article.py | ||
import_area.py | ||
import_newmedia.py | ||
import_organization.py | ||
import_时效性监测.py | ||
import_错别字.py | ||
manage.py | ||
passenger_wsgi.py | ||
requirements.txt | ||
test.py | ||
update_newmedia.py | ||
替换时间戳_toutiao.py | ||
替换时间戳_weixin.py |
README.md
install
pip install -r requirements.txt
pip install git+https://github.com/RobWeber3/django-token.git
pip install git+https://github.com/arteria/django-background-tasks.git
migrations
不要在本机上做make migrations 和migrate!
cd /home/g214/tools/nmm/NewMediaMonitoring
git pull # enter username && password
source .venv/bin/activate
python manage.py make migrations
python manage.py migrate
查看服务器apache 内存使用情况
sudo /usr/sbin/passenger-memory-stats
eb3e67e892173f14c600cbfa39da053b111e47ff
675063ff1d43f2e897fda5d70bb6c5bea57ce451