1 Star 0 Fork 344

刘怀忠/Django

forked from 极客时间/Django 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
start.production.bat 576 Bytes
一键复制 编辑 原始数据 按行查看 历史
# django-admin compilemessages
# --settings=settings.production
python manage.py runserver 0.0.0.0:8000 $server_params
# for async web server:
#export DJANGO_SETTINGS_MODULE=settings.production
#uvicorn recruitment.asgi:application --port 8000 --workers 2
## TODO fix Dockerfile for production in asyncio.py :
##File "/usr/local/lib/python3.9/site-packages/django/utils/asyncio.py", line 24, in inner
## raise SynchronousOnlyOperation(message)
## django.core.exceptions.SynchronousOnlyOperation: You cannot call this from an async context - use a thread or sync_to_async.
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/liu_huai_zhong/django.git
git@gitee.com:liu_huai_zhong/django.git
liu_huai_zhong
django
Django
master

搜索帮助