An app that provides Django admin for ARQ
Project description
ARQ Django admin
Django admin dashboard for arq. ARQ Django admin is a simple app that allows you to configure your queues in django's settings.py and easily use them in your project.
Installation
- Install
arq-django-admin
(or download from PyPI):
pip install arq-django-admin
- Add
arq_admin
toINSTALLED_APPS
insettings.py
:
INSTALLED_APPS = (
'arq_admin',
# other apps
)
Make sure you added it before django.contrib.admin
, otherwise you won't be able to see a link in the top right corner.
- Configure your queues in Django's
settings.py
:
from arq.connections import RedisSettings
from arq.constants import default_queue_name
ARQ_QUEUES = {
default_queue_name: RedisSettings(
host='localhost',
port=6379,
database=0,
),
'arq:another_queue_name': RedisSettings(),
}
- Include
arq_admin.urls
in yoururls.py
:
from django.urls import include, path
urlpatterns = [
# <...>
path('arq/', include('arq_admin.urls')),
]
- If you use custom job serializer, you need to add deserializer to
settings.py
:
ARQ_DESERIALIZER = custom_job_deserializer
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
arq-django-admin-0.0.6.tar.gz
(8.8 kB
view hashes)
Built Distribution
Close
Hashes for arq_django_admin-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e31485a8ad51f1e721335ebbc5969ac04fef5cecaf26d93b2f509571d64b5c7 |
|
MD5 | c3db483367cd117b8e0e1fa56d0e84af |
|
BLAKE2b-256 | 9b5840cc101b27a5c1a6f8759f1c96334e6040344dc6a653f6ee8dc1348adb8d |