Update the demo project so it works with the latest Django and celery
This commit is contained in:
Родитель
06461aa179
Коммит
1d131e9910
|
@ -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()
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
django==1.8.4
|
||||
django==1.9.5
|
||||
sqlalchemy==1.0.9
|
||||
celery>=4.0
|
||||
|
|
Загрузка…
Ссылка в новой задаче