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

Django 1.7 And You

Django 1.7 And You

A talk I gave at the San Francisco Django Meetup group

Andrew Godwin

April 30, 2014
Tweet

More Decks by Andrew Godwin

Other Decks in Programming

Transcript

  1. Andrew Godwin Author of South migrations library Hi, I'm Author

    of 1.7 Django migrations Generally far too involved in Django
  2. Django 1.7 Migrations Scheduled release: May 15th (we'll probably miss

    it) App loading refactor Checks framework select_related filters Custom lookups
  3. The (second) Plan Django Schema backend ORM Hooks South 2

    Migration handling User interface Backport for 1.4 - 1.6
  4. Backwards Compatability Auto-applies first migration if tables exist Ignores South-style

    migrations South will start looking for south_migrations
  5. from django.db.models import Lookup class NotEqual(Lookup): lookup_name = 'ne' def

    as_sql(self, qn, connection): lhs, lhs_params = self.process_lhs(qn, connection) rhs, rhs_params = self.process_rhs(qn, connection) params = lhs_params + rhs_params return '%s <> %s' % (lhs, rhs), params