Djoser 0.7 released

New version of REST implementation of Django authentication system provides big mount of changes and features
04 September 2017   639

What is Djoser?

REST implementation of Django authentication system. Djoser library provides a set of Django Rest Framework views to handle basic actions such as registration, login, logout, password reset and account activation. It works with custom user model.

Instead of reusing Django code (e.g. PasswordResetForm), we reimplemented few things to fit better into Single Page App architecture.

What's new in Djoser 0.7?

According to the developers, they were working for 2 months to release this version. 
List of changes:

  • Add TOKEN_MODEL setting to allow third party apps to specify a custom token model
  • Add USER_EMAIL_FIELD_NAME setting as a compatibility solution in Django < 1.11
  • Add support for Django Password Validators
  • Add HTML templates for djoser emails
  • Add flake8 integration to CI
  • Add py.test integration
  • Add Python 3.7 to CI
  • Update from coveralls to codecov
  • Update README to rST with uniform badges
  • Update djoser.views.PasswordResetView to allow non-database User.is_active
  • Update docs on topics which have been added/modified since last release
  • Remove serializers manager, so the serializers in djoser are now accessed via dot notation
  • Remove support for DRF 3.4
  • Remove support for basic auth as authentication backend
  • Refactor djoser settings module for cleaner and more pythonic/djangonic solution
  • Refactor tests into multiple files and fix some minor issues
  • Refactor some parts of codebase for better readability
  • Slightly refactor/simplify parts of djoser.utils
  • Fix all style issues reported by flake8_ in codebase
  • Fix security bug in djoser.views.UserView

See GitHub for more info.

Django 2.0 beta available now

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

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