Django 2.0 beta available now

Beta version of new major release of popular Python framework out now
17 October 2017   1980

Great news for Python developers and Django fans. Beta version of Django 2.0 out now. 

What's new in Django 2.0 beta? 

  • Simplified URL routing syntax
    • The new django.urls.path() function allows a simpler, more readable URL routing syntax. For example, this example from previous Django releases:
      • url(r'^articles/(?P<year>[0-9]{4})/$', views.year_archive),
        
    • could be written as:
      • path('articles/<int:year>/', views.year_archive),
  • Mobile-friendly contrib.admin
    • The admin is now responsive and supports all major mobile devices. Older browser may experience varying levels of graceful degradation
  • Window expressions
    • The new Window expression allows adding an OVER clause to querysets. You can use window functions and aggregate functions in the expression.
  • Removed support for bytestrings in some places
    • To support native Python 2 strings, older Django versions had to accept both bytestrings and unicode strings. Now that Python 2 support is dropped, bytestrings should only be encountered around input/output boundaries (handling of binary fields or HTTP streams, for example). You might have to update your code to limit bytestring usage to a minimum, as Django no longer accepts bytestrings in certain code paths.

Python compatibility

Django 2.0 supports Python 3.4, 3.5, and 3.6. Developers highly recommend  and officially support the latest release of each series.

The Django 1.11.x series is the last to support Python 2.7.

Django 2.0 will be the last release series to support Python 3.4. If you plan a deployment of Python 3.4 beyond the end-of-life for Django 2.0 (April 2019), stick with Django 1.11 LTS (supported until April 2020) instead. Note, however, that the end-of-life for Python 3.4 is March 2019.

Learn more at official release notes

You can download Django 2.0 beta at official website

 

Django 2.2 to be Available

Good news - Django 2.2 is classified as a long-term issue and will receive updates until April 2022
02 April 2019   758

Django 2.2 web framework, written in Python and intended for developing web applications, is finally out. Django 2.2 is classified as a long-term issue and will receive updates until April 2022. LTS-branch 1.11 will be supported until April 2020, and branch 2.1 until December 2019. Support for branch 2.0 has been discontinued.

Key improvements:

  • New CheckConstraint and UniqueConstraint classes have been added that allow the model to define its own database access restrictions using the Meta.constraints option;
  • In the runserver, the Watchman framework is used to increase the performance of tracking changes in a large number of files;
  • Added an HttpRequest.headers object for quick access to HTTP headers sent during a request (for example, request.headers ['User-Agent']).