Django 1.11 has been released and is available on SourceLair

Django 1.11 has just been released and is immediately available on SourceLair.

Starting today, when you create a new Django project in SourceLair, it will be created using Django 1.11.

We would also like to take a moment and highlight the major new features that come with the latest version of Django.

Class-based model indexes

The new django.db.models.indexes module contains classes which ease creating B-Tree database indexes and defining the order (ASC/DESC) for the columns of the index.

On top of that, Django 1.11 ships also the new django.contrib.postgres.indexes, which provides Postgres specific database indexes.

Template-based widget rendering

Template widgets in Django are now rendered using HTML templates, instead of pure Python. This allows easier extensibility and lets you also take advantage of the template engine of your choice for rendering widgets.

Take a look at the new form rendering API to learn more about how template-based widgets work.

Subquery expressions

Django now supports what is called Subquery expressions. In brief, subquery expressions allow you to make a database query with multiple SELECT queries one inside another, in pure Python.

This can be extremely useful when you would like to fetch also aggregated data for each queryset's object (e.g. bring all users and the count of blog articles of each user that have more than 1,000 views).

📣 Public Service Announcement: This is the last Django version to support Python 2. Starting with the next Django version (2.0), only Python 3 will be supported.

Want to learn more about Django 1.11 (minor features, deprecations, breaking changes)? Take a look at the complete release notes.

Ready to try out all this new Django goodness? Go to https://www.sourcelair.com, create a new Django project and get straight to work!

Where you can get

Updates and contact us

You can check out product updates at the SourceLair blog, or learn more about us at State of Progress, where we share our thoughts on software development and management.

Stay in touch

You can reach out to us at Twitter, Facebook, Instagram or email us at [email protected].