Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Upgrading Django

Upgrading Django

Why and how to stay current with Django releases

Clay McClure

July 01, 2013
Tweet

More Decks by Clay McClure

Other Decks in Programming

Transcript

  1. 8IZ

  2. )PX

  3. 

  4. what's new in 1.5 Configurable User model Model.save(update_fields) StreamingHttpResponse {%

    verbatim %} True, False, None localtime() DEBUG logging index_together ...and much more
  5. Be the User model you want to see in the

    world. – David Gouldin
  6. what's new in 1.5 Configurable User model Model.save(update_fields) StreamingHttpResponse {%

    verbatim %} True, False, None localtime() DEBUG logging index_together ...and much more
  7. what's changed in 1.5 Form.cleaned_data Session not saved on HTTP

    500 Server Error YearArchiveView and {{ year }} TemplateView and {{ params }} request.POST and non-form data PostgreSQL autocommit fixed Test Client behavior TransactionTestCase behavior
  8. what's gone in 1.5 {% load url from future %}

    {% admin_media_prefix %} Procedural generic views URLField.verify_exists CACHE_BACKEND mod_python request handler Test Client's response.template AdminMediaHandler replaced by StaticFilesHandler manage.py reset and manage.py sqlreset
  9. what's going away in 1.7 django.contrib.localflavor (actually going away in

    1.6) django.contrib.markup django.utils.simplejson AUTH_PROFILE_MODULE Streaming with HttpResponse manage.py cleanup select_related(depth)
  10. 

  11. what's coming in 1.6 New default project/app template SQLite by

    default Database autocommit on by default New transaction management Persistent DB connections unittest2 test discovery QuerySet.earliest() HTML5 text input widgets ...and much more
  12. what's changing in 1.6 Database autocommit and transaction management Test

    discovery QuerySet date handling BooleanField default reverse and urlquote() Password reset EmptyQuerySet() Cache timeout
  13. what's gone in 1.6 django.contrib.databrowse django.contrib.localflavor django.contrib.markup django.conf.urls.defaults Pre-1.4 form

    wizard semantics Some cache_page() semantics truncate_words() / truncate_html_words() Old manage.py will no longer work HttpRequest.raw_post_data
  14. what's going away in 1.8 django.contrib.comments django.db.transaction decorators / context

    managers PostgreSQL before 8.4 {% load cycle from future %} CACHE_MIDDLEWARE_ANONYMOUS_ONLY Model._meta.module_name Implicit ModelForm fields