Skip to content

Instantly share code, notes, and snippets.

@aballah-chamakh
Created November 17, 2019 06:15
Show Gist options
  • Save aballah-chamakh/8dd4b3a4157cdcc2259adff6b80de887 to your computer and use it in GitHub Desktop.
Save aballah-chamakh/8dd4b3a4157cdcc2259adff6b80de887 to your computer and use it in GitHub Desktop.
INSTALLED_APPS = [
# ...
'inference' ,
]
# configure celery and redis
BROKER_URL = 'redis://localhost:6379'
CELERY_RESULT_BACKEND = 'redis://'
CELERY_ACCEPT_CONTENT = ['application/json']
CELERY_RESULT_SERIALIZER = 'json'
CELERY_TASK_SERIALIZER = 'json'
# setup media files
MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR,'media')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment