1 django3.0 官方文档:https://www.djangoproject.com/weblog/2019/dec/02/django-3-released/web
2 django3.0 新特性:
(1)ASGI;
(2)支持MariaDB10.1+
(3)自定义枚举类型(TextChoices,IntegerChoices)django
3 ASGI:
在django3.0以前django的Web服务器网关接口一直用的是WSGI,ASGI的A就是Async,也就是异步的意思,ASGI简单的来讲就是异步的WSGI。服务器
你们看一下,咱们的目录里比以前的django2多出了一个asgi.py文件,这个就是以前咱们所说的ASGI组件。 ASGI服务器组件,咱们有两种应用服务器能够来启动它: 一种是用Uvicorn 一种是用Daphne [命令是同样的] pip install Uvicorn uvicorn mysite.asgi:application 建议使用daphne。