Mercurial > public > sg101
annotate potd/tasks.py @ 1043:867e84d18b0f
Update to Django 1.8.8.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Fri, 15 Jan 2016 21:41:24 -0600 |
parents | aeafbf3ecebf |
children |
rev | line source |
---|---|
bgneal@515 | 1 """ |
bgneal@515 | 2 Celery tasks for the POTD app. |
bgneal@515 | 3 |
bgneal@515 | 4 """ |
bgneal@750 | 5 from __future__ import absolute_import |
bgneal@750 | 6 |
bgneal@750 | 7 from celery import shared_task |
bgneal@515 | 8 |
bgneal@515 | 9 import potd.tools |
bgneal@515 | 10 |
bgneal@515 | 11 |
bgneal@750 | 12 @shared_task |
bgneal@515 | 13 def pick_potd(): |
bgneal@515 | 14 potd.tools.pick_potd() |