前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Django version 3.0 released

Django version 3.0 released

作者头像
用户4822892
修改2019-12-04 10:04:50
4340
修改2019-12-04 10:04:50
举报

What is Django? What's new in Django 3.0? The Python web framework Django released in version 3.0 with MariaDB and brings asynchronous processing thanks to ASGI.

What is Django?

Django's open-source venture thinks back on a fourteen-year history, including Instagram, Mozilla, Bitbucket and the Washington Times. The framework, which has been under the administration of the Django Software Foundation since 2008, was initially made in 2003 on the news page of the day by day paper Lawrence Journal-World.

The framework, which owes its name to jazz guitarist Django Reinhardt, utilizes the MVC (Model View Controller) rule to partition the product into information model, introduction and program control. The creators talk in the FAQ of a changed structure, which comprises of model, format, and introduction and subsequently ought to really MTV for Model, Template View would have called.

Django Version 3.0 Released, What's New in Django 3.0?

The web framework Django created in Python has been discharged in adaptation 3.0. The most significant advancements are the presentation of offbeat capacities and an association with the open-source database MariaDB. What's more, designers can characterize specifications as substance determinations for content, whole number, and different fields. Django 3.0 is not normal for its processor Django 2.2 no LTS discharge.

MariaDB is growing the scope of databases that the framework works with and keeps on comprising of PostgreSQL, Oracle, SQLite, and MySQL. The backend for the last is utilized to the interface from MariaDB, which began from a fork of MySQL. Django works with MariaDB from Django 10.1 onwards.

Asynchronous Process of Development

The most striking development is the presentation of nonconcurrent highlights: Starting with Django 3.0, Django can be run as an ASGI application (nonconcurrent server passage interface). The interface is viewed as the otherworldly successor to the Web Server Gateway Interface (WSGI), which determines an interface between Web frameworks, Web servers, and application servers in the Python environment.

While WSGI is intended for synchronous web applications, ASGI can likewise be utilized for nonconcurrent applications and is intended to be as good as conceivable with the Web Server Gateway Interface. Django keeps on utilizing the great WSGI interface, however, it doesn't give nonconcurrent handling.

As per the Django blog, form 3.0 stamps just the start of the voyage, where the framework ought to be structured totally for asynchrony. For years to come, the Django group doesn't expect to cut the WSGI association, so engineers of synchronous web applications don't need to change to ASGI.

Flexibility of Development

Additionally new are the sorts TextChoices, IntegerChoices, and Choices, the designers' Field.choices define as a count as. The TextChoicesused for content fields that have a choice of pre-characterized character strings and IntegerChoices take various whole number qualities. With Choices, other field types can be listed.

Read: Top 10 Python Frameworks for Web Development for 2020

Further developments can be found in the discharge notes. Django 3.0 requires in any event Python 3.6. From Python 2.x, the web framework had just embraced two years prior. On the off chance that you would prefer not to manage without Python 3.5, you need to utilize the antecedent Django 2.2, which will get support as an LTS discharge until 2022. The following planned LTS variation is to be Django 3.2, which ought to show up in April 2021. This will likewise end the all-inclusive help of Django 3.0. Ordinary help runs until the arrival of Django 3.1, planned for August 2020. 

Read: Top 10 Frameworks for Web Application Development

本文系转载,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文系转载前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • What is Django?
  • Django Version 3.0 Released, What's New in Django 3.0?
    • Asynchronous Process of Development
      • Flexibility of Development
      相关产品与服务
      云数据库 SQL Server
      腾讯云数据库 SQL Server (TencentDB for SQL Server)是业界最常用的商用数据库之一,对基于 Windows 架构的应用程序具有完美的支持。TencentDB for SQL Server 拥有微软正版授权,可持续为用户提供最新的功能,避免未授权使用软件的风险。具有即开即用、稳定可靠、安全运行、弹性扩缩等特点。
      领券
      问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档