diff --git a/examples/django/README.rst b/examples/django/README.rst index e8e091e96..ce4eb5bd9 100644 --- a/examples/django/README.rst +++ b/examples/django/README.rst @@ -53,7 +53,7 @@ Running a task .. code-block:: console - $ python ./manage.sh shell + $ python ./manage.py shell >>> from demoapp.tasks import add, mul, xsum >>> res = add.delay(2,3) >>> res.get() diff --git a/examples/django/proj/settings.py b/examples/django/proj/settings.py index 0fd064aae..ec9f018de 100644 --- a/examples/django/proj/settings.py +++ b/examples/django/proj/settings.py @@ -12,6 +12,7 @@ CELERY_BROKER_URL = 'amqp://guest:guest@localhost//' #: from unwanted access (see userguide/security.html) CELERY_ACCEPT_CONTENT = ['json'] CELERY_RESULT_BACKEND = 'db+sqlite:///results.sqlite' +CELERY_TASK_SERIALIZER = 'json' # Django settings for proj project. diff --git a/examples/django/requirements.txt b/examples/django/requirements.txt index 77a33d8e4..1b5c28af0 100644 --- a/examples/django/requirements.txt +++ b/examples/django/requirements.txt @@ -1,2 +1,3 @@ -django==1.8.4 +django==1.9.5 sqlalchemy==1.0.9 +celery>=4.0