celery/django-celery — pull request #218 by webengineer (2012-12-13 16:54:49+00:00)
Title: See https://gist.github.com/4277730 for details

Fix for Error in timer: ValueError('Not naive datetime (tzinfo is already set)',) in ./manage.py celerycam output. Raised on task.retry() (see environment settings and task example below).

However still receiving RuntimeWarning: DateTimeField received a naive datetime::

/home/user/.virtualenvs/storm/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2012-12-13 16:48:03) while time zone support is active.
RuntimeWarning)

which I tend to postpone for now.

### requirements.txt
celery==3.0.12
Django==1.4.2
django-celery==3.0.11
librabbitmq==1.0.0

### settings.py
TIME_ZONE = 'UTC'
USE_I18N = True
USE_L10N = Trueform
USE_TZ = True
BROKER_URL = 'librabbitmq://test:123456@localhost:5672/test'
import djcelery
djcelery.setup_loader()

### tasks.py
@celery.task()
def test_task():
test_task.retry()