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

Liveblogging using channels

Liveblogging using channels

Lightning talk at DjangoCon Europe 2016

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), })