|
il y a 2 ans | |
---|---|---|
.. | ||
admin_site | il y a 2 ans | |
files | il y a 2 ans | |
order | il y a 2 ans | |
service | il y a 2 ans | |
sick | il y a 2 ans | |
user | il y a 2 ans | |
.gitignore | il y a 2 ans | |
celery.log | il y a 2 ans | |
celerybeat-schedule.db | il y a 2 ans | |
manage.py | il y a 3 ans | |
mysite.sqlite | il y a 2 ans | |
readme.md | il y a 2 ans | |
requirements.txt | il y a 2 ans |
redis-server
celery -A admin_site beat
celery -A admin_site worker -l info --max-memory-per-child=524288000
windows 下的 celery 会出现进程之间的通信问题
pip install eventlet
celery -A admin_site worker -l info --max-memory-per-child=524288000 -P eventlet
python3 manage.py runserver
redis-cli
1、django_migrations
delete
from django_migrations
where app like 'order'
2、先执行 makemigrations,创建python生成表的函数
python3 manage.py makemigrations order
3、 再执行 migrate,运行sql创建语句
python3 manage.py migrate order
python3 manage.py createsuperuser
python3 manage.py startapp