def get_queue_class(config=None, queue_class=None):
RQ = getattr(settings, '<STR_LIT>', {})<EOL>if queue_class is None:<EOL><INDENT>queue_class = RQ.get('<STR_LIT>', DjangoRQ)<EOL>if config:<EOL><INDENT>queue_class = config.get('<STR_LIT>', queue_class)<EOL><DEDENT><DEDENT>if isinstance(queue_class, six.string_types):<EOL><INDENT>queue_class = import_attribute(queue_class)<EOL><DEDENT>return queue_class<EOL>
Return queue class from config or from RQ settings, otherwise return DjangoRQ.
If ``queue_class`` is provided, it takes priority.

The full priority list for queue class sources:
1. ``queue_class`` argument
2. ``QUEUE_CLASS`` in ``config`` argument
3. ``QUEUE_CLASS`` in base settings (``RQ``)