Using a dict allows you to modify and access the redis connection globally
without having to use the 'global' keyword.


On Tue, Aug 27, 2013 at 5:01 AM, Vincent Driessen
<notifications@github.com>wrote:

> In rq_dashboard/dashboard.py:
>
> > @@ -17,6 +17,9 @@
> >          static_folder='static',
> >          )
> >
> > +connections = {
> > +    'redis_conn': None
> > +}
>
> Why put it in a dict?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/nvie/rq-dashboard/pull/49/files#r6000262>
> .
>