{"action":"created","issue":{"url":"https://api.github.com/repos/Bogdanp/django_dramatiq/issues/18","repository_url":"https://api.github.com/repos/Bogdanp/django_dramatiq","labels_url":"https://api.github.com/repos/Bogdanp/django_dramatiq/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/Bogdanp/django_dramatiq/issues/18/comments","events_url":"https://api.github.com/repos/Bogdanp/django_dramatiq/issues/18/events","html_url":"https://github.com/Bogdanp/django_dramatiq/pull/18","id":351488437,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA5MDY4MDQy","number":18,"title":"configurable results backend via settings","user":{"login":"xdmiodz","id":563026,"node_id":"MDQ6VXNlcjU2MzAyNg==","avatar_url":"https://avatars1.githubusercontent.com/u/563026?v=4","gravatar_id":"","url":"https://api.github.com/users/xdmiodz","html_url":"https://github.com/xdmiodz","followers_url":"https://api.github.com/users/xdmiodz/followers","following_url":"https://api.github.com/users/xdmiodz/following{/other_user}","gists_url":"https://api.github.com/users/xdmiodz/gists{/gist_id}","starred_url":"https://api.github.com/users/xdmiodz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xdmiodz/subscriptions","organizations_url":"https://api.github.com/users/xdmiodz/orgs","repos_url":"https://api.github.com/users/xdmiodz/repos","events_url":"https://api.github.com/users/xdmiodz/events{/privacy}","received_events_url":"https://api.github.com/users/xdmiodz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-17T07:35:22Z","updated_at":"2018-09-22T08:30:53Z","closed_at":"2018-09-22T08:30:53Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/Bogdanp/django_dramatiq/pulls/18","html_url":"https://github.com/Bogdanp/django_dramatiq/pull/18","diff_url":"https://github.com/Bogdanp/django_dramatiq/pull/18.diff","patch_url":"https://github.com/Bogdanp/django_dramatiq/pull/18.patch"},"body":"now it's possible to configure results backend via broker settings\r\n\r\nexample:\r\n\r\n```\r\nDRAMATIQ_BROKER = {\r\n    'BROKER': 'dramatiq.brokers.redis.RedisBroker',\r\n    'OPTIONS': {\r\n        'url': 'redis://localhost:6379',\r\n    },\r\n    'RESULTS_BACKEND': 'dramatiq.results.backends.RedisBackend',\r\n    'RESULTS_BACKEND_OPTIONS': {\r\n        'url': 'redis://localhost:6379',\r\n    },\r\n    'MIDDLEWARE': [\r\n        'dramatiq.middleware.AgeLimit',\r\n        'dramatiq.middleware.TimeLimit',\r\n        'dramatiq.middleware.Callbacks',\r\n        'dramatiq.middleware.Retries',\r\n        'dramatiq.results.middleware.Results',\r\n        'django_dramatiq.middleware.AdminMiddleware',\r\n        'django_dramatiq.middleware.DbConnectionsMiddleware',\r\n    ]\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/Bogdanp/django_dramatiq/issues/comments/423727357","html_url":"https://github.com/Bogdanp/django_dramatiq/pull/18#issuecomment-423727357","issue_url":"https://api.github.com/repos/Bogdanp/django_dramatiq/issues/18","id":423727357,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMzcyNzM1Nw==","user":{"login":"Bogdanp","id":43347,"node_id":"MDQ6VXNlcjQzMzQ3","avatar_url":"https://avatars2.githubusercontent.com/u/43347?v=4","gravatar_id":"","url":"https://api.github.com/users/Bogdanp","html_url":"https://github.com/Bogdanp","followers_url":"https://api.github.com/users/Bogdanp/followers","following_url":"https://api.github.com/users/Bogdanp/following{/other_user}","gists_url":"https://api.github.com/users/Bogdanp/gists{/gist_id}","starred_url":"https://api.github.com/users/Bogdanp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bogdanp/subscriptions","organizations_url":"https://api.github.com/users/Bogdanp/orgs","repos_url":"https://api.github.com/users/Bogdanp/repos","events_url":"https://api.github.com/users/Bogdanp/events{/privacy}","received_events_url":"https://api.github.com/users/Bogdanp/received_events","type":"User","site_admin":false},"created_at":"2018-09-22T08:30:53Z","updated_at":"2018-09-22T08:30:53Z","author_association":"OWNER","body":"Thanks! I made some changes to this and merged it.  The appropriate config syntax is:\r\n\r\n```python\r\nDRAMATIQ_RESULT_BACKEND = {\r\n    'BACKEND': 'dramatiq.results.backends.RedisBackend',\r\n    'BACKEND_OPTIONS': {\r\n      'url': 'redis://localhost:6379',\r\n    }\r\n}\r\n\r\nDRAMATIQ_BROKER = {\r\n    'BROKER': 'dramatiq.brokers.redis.RedisBroker',\r\n    'OPTIONS': {\r\n        'url': 'redis://localhost:6379',\r\n    },\r\n    'MIDDLEWARE': [\r\n        'dramatiq.middleware.AgeLimit',\r\n        'dramatiq.middleware.TimeLimit',\r\n        'dramatiq.middleware.Callbacks',\r\n        'dramatiq.middleware.Retries',\r\n        'django_dramatiq.middleware.AdminMiddleware',\r\n        'django_dramatiq.middleware.DbConnectionsMiddleware',\r\n    ]\r\n}\r\n```"}}
{"actor":{"display_login":"Bogdanp"}}