celery -A domainer beat -l info --scheduler django_celery_beat.schedulers:DatabaseScheduler
celery -A domainer worker -l info
celery -A domainer flower --port=5555
python3 manage.py collectstatic
# 输入默认yes
注: 如做了前后端分离,配置文件做了多环境的区分,主配置文件的url 要增加:re_path(r'^static/(?P<path>.*)$', serve, {'document_root': settings.base.STATIC_ROOT}),
主settings 的base
文件要增加STATIC_ROOT = os.path.join(BASE_DIR, 'static')
# 测试使用
export ENV="test/prod"
# 生产使用
vim /etc/profile
export ENV=prod
create database domainer default character set utf8mb4 collate utf8mb4_unicode_ci;
create user 'domainer'@'%' identified by 'domainer'
grant all on domainer.* to 'domainer'@'%';
./frontend