python-django-rq
Port variant v14
Summary Django integration of Redis Queue (3.14)
Package version 3.2.1
Homepage https://python-rq.org/patterns/django/
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants v13
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 25 NOV 2025, 20:49:22 UTC
Port created 01 JAN 2023, 17:21:46 UTC
Subpackage Descriptions
single # Django-RQ [Build Status] Django integration with [RQ], a [Redis] based Python queuing library. [Django-RQ] is a simple app that allows you to configure your queues in Django's `settings.py` and easily use them in your project. ## Support Django-RQ If you find `django-rq` useful, please consider supporting its development via [Tidelift]. ## Requirements - [Django] (3.2+) - [RQ] ## Installation - Install `django-rq` (or [download from PyPI]): ```bash pip install django-rq ``` - Add `django_rq` to `INSTALLED_APPS` in `settings.py`: ```python INSTALLED_APPS = ( # other apps "django_rq", ) ``` - Configure your queues in Django's `settings.py`: ```python RQ_QUEUES = { 'default': { 'HOST': 'localhost', 'PORT': 6379, 'DB': 0, 'USERNAME': 'some-user', 'PASSWORD': 'some-password', 'DEFAULT_TIMEOUT': 360, 'DEFAULT_RESULT_TTL': 800, 'REDIS_CLIENT_KWARGS': { # Eventual additional Redis connection arguments 'ssl_cert_reqs': None, }, }, 'with-sentinel': { 'SENTINELS': [('localhost', 26736), ('localhost', 26737)], 'MASTER_NAME': 'redismaster', 'DB': 0, # Redis username/password 'USERNAME': 'redis-user', 'PASSWORD': 'secret', 'SOCKET_TIMEOUT': 0.3, 'CONNECTION_KWARGS': { # Eventual additional Redis connection arguments 'ssl': True }, 'SENTINEL_KWARGS': { # Eventual Sentinel connection arguments # If Sentinel also has auth, username/password can be passed here 'username': 'sentinel-user', 'password': 'secret', }, }, 'high': { 'URL': os.getenv('REDISTOGO_URL', 'redis://localhost:6379/0'), # If you're on Heroku 'DEFAULT_TIMEOUT': 500, }, 'low': { 'HOST': 'localhost', 'PORT': 6379, 'DB': 0, } } RQ_EXCEPTION_HANDLERS = ['path.to.my.handler'] # If you need custom exception handlers ``` - Include `django_rq.urls` in your `urls.py`: ```python urlpatterns += [ path('django-rq/', include('django_rq.urls')) ] ``` ## Usage ### Putting jobs in the queue Django-RQ allows you to easily put jobs into any of the queues defined in
Configuration Switches (platform-specific settings discarded)
PY313 OFF Build using Python 3.13 PY314 ON Build using Python 3.14
Package Dependencies by Type
Build (only) python314:dev:std
python-pip:single:v14
autoselect-python:single:std
Build and Runtime python314:primary:std
Runtime (only) python-Django:single:v14
python-redis:single:v14
python-rq:single:v14
Download groups
main mirror://PYPIWHL/77/e1/c74a380907406146785131ccbe695b995161ba3ce899dbd8a54a7cd71d4b
Distribution File Information
4cadf9077d829c015eb1101a91ccb51f78686cfa125a6d589ad58e61dd13fc44 61841 python-src/django_rq-3.2.1-py3-none-any.whl
Ports that require python-django-rq:v14
No other ports depend on this one.