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

Liveblogging using channels

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers.

Liveblogging using channels

Lightning talk at DjangoCon Europe 2016

Avatar for Iacopo Spalletti

Iacopo Spalletti

March 31, 2016
Tweet

More Decks by Iacopo Spalletti

Other Decks in Programming

Transcript

  1. SO, CHANNELS FUTURE (AND PRESENT) OF DJANGO Released for Djago

    1.8, 1.9 In Django core starting 1.10 (hopefully)
  2. HOW DOES IT WORK? notification = { 'id': self.pk, 'content':

    self.render(), 'creation_date': self.creation_date.strftime(DATE_FORMAT), 'changed_date': self.changed_date.strftime(DATE_FORMAT), } Group(self.liveblog_group).send({ 'text': json.dumps(notification), })