Created
November 17, 2019 06:15
-
-
Save aballah-chamakh/8dd4b3a4157cdcc2259adff6b80de887 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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