Bogdanp / django_dramatiq

A Django app that integrates with Dramatiq.
https://dramatiq.io
Other
331 stars 77 forks source link

Wrong package in README.md for RedisBackend #72

Closed brunobrg closed 3 years ago

brunobrg commented 4 years ago

The configuration example to be added in settings.py for result backend is as follows:

DRAMATIQ_RESULT_BACKEND = {
    "BACKEND": "dramatiq.results.backends.redis.RedisBackend",
    "BACKEND_OPTIONS": {
        "url": "redis://localhost:6379",
    },
    "MIDDLEWARE_OPTIONS": {
        "result_ttl": 60000
    }
}

dramatiq.results.backends.redis.RedisBackend doesn't exists and should be dramatiq.results.backends.RedisBackend

Bogdanp commented 3 years ago

@brunobrg thanks for the report. Any chance you made a mistake when copying the example? This should definitely work and it does for me:

$ python3
>>> from django.utils.module_loading import import_string
>>> import_string('dramatiq.results.backends.redis.RedisBackend')
<class 'dramatiq.results.backends.redis.RedisBackend'>
Bogdanp commented 3 years ago

Closing for now. Please feel free to re-open if the above doesn't work for you.