Mercurial > public > sg101
view accounts/tasks.py @ 917:0365fdbb4d78
Fix app conflict with messages.
Django's messages app label conflicts with our messages app.
We can't easily rename our label as that will make us rename database tables.
Since our app came first we'll just customize Django messages label.
For Django 1.7.7 upgrade.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Mon, 06 Apr 2015 20:02:25 -0500 |
parents | aeafbf3ecebf |
children |
line wrap: on
line source
""" Celery tasks for the accounts application. """ from __future__ import absolute_import from celery import shared_task from accounts.stats import update_user_stats @shared_task def user_stats_task(user_id): """ Run the update_user_stats() function on a new task. """ update_user_stats(user_id)