Skip to content

Moving to Django 1.7

cpennington edited this page Nov 20, 2014 · 5 revisions
Django Version Necessary Work Immediate Benefits Additional Benefits (requires work)
1.5 @clintonb has done some work on the 1.5 upgrade, however a few tests are broken.
  • Password-length DOS protection
  • Use configurable user model to remove first/last name fields
  • Field subset saves to only update grades on courseware StudentModel
  • Easier logging of failed logins (new django signal)
  • Multi-column indexes
1.6
  • Remove TransactionMiddleware
  • Enable ATOMIC_REQUESTS
  • Replace use of
    • autocommit
    • commit_on_success
    • commit_manually
  • Wrap uses of select_for_update in atomic
  • Repeatable read, and consistency between successive reads?
  • Check for BooleanFields with no explicit default
  • urlquote in reverse?
  • Non-string session keys?
  • ModelForms with no field list set?
  • Persistent DB connections
  • Faster Model.save()
  • Safer session serialization
1.7
  • Remove use of get_cache
  • Easier DB routing for migrations (i.e. if edx-ora2 wanted to use its own DBs)
  • New, better schema migration framework
  • Built-in app loading startup (can remove custom startup code)
  • Update_or_create for writing grades to CSM
Clone this wiki locally