Skip to content

Commit

Permalink
Update README.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
ricleal committed Jul 4, 2017
1 parent adcc346 commit 07c0e75
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ Install Django Remote Submission::

Then use it in a project::

.. code:: python
from django_remote_submission.models import Server, Job
from django_remote_submission.tasks import submit_job_to_server
Expand Down Expand Up @@ -131,17 +133,12 @@ Useful notes

When integrating this in django it might be usefull:

Add to settings::

CELERY_ACCEPT_CONTENT = ['pickle']
CELERY_EVENT_SERIALIZER = 'pickle'
CELERY_TASK_SERIALIZER = 'pickle'
CELERY_RESULT_SERIALIZER = 'pickle'

if using the app ``'django_celery_results``. Otherwise Result is not serialized.

The Results files are stored in MEDIA. So add to your setings something similar to::

.. code:: python
MEDIA_URL = '/media/'
MEDIA_ROOT = '../dist/media'
Expand Down

0 comments on commit 07c0e75

Please sign in to comment.