jrief / django-websocket-redis

Websockets for Django applications using Redis as message queue
http://django-websocket-redis.awesto.com/
MIT License
895 stars 222 forks source link

Allow WS4REDIS_PROCESS_REQUEST to be a string #232

Closed gtnx closed 5 years ago

gtnx commented 7 years ago

Like many other libraries, it's convenient to define a settings which is a function or a class as a path to this object rather than the object directly.

So instead of

# settings.py

...
from path.to.utils import process_request
WS4REDIS_PROCESS_REQUEST = process_request

have

# settings.py

...
WS4REDIS_PROCESS_REQUEST = 'path.to.utils.process_request'