Skip to content

Commit

Permalink
Install and configure django-q2
Browse files Browse the repository at this point in the history
  • Loading branch information
hmpf committed Sep 19, 2023
1 parent 48ce2b1 commit a3d0c65
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ dependencies = [
"django-multiselectfield",
"django-phonenumber-field[phonenumberslite]",
"djangorestframework>=3.14",
"django-q2",
"drf-rw-serializers",
"drf-spectacular>=0.17",
"factory_boy",
Expand Down
6 changes: 6 additions & 0 deletions requirements-django32.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ django==3.2.21
# django-filter
# django-multiselectfield
# django-phonenumber-field
# django-picklefield
# django-q2
# djangorestframework
# drf-rw-serializers
# drf-spectacular
Expand All @@ -83,6 +85,10 @@ django-multiselectfield==0.1.12
# via argus-server (pyproject.toml)
django-phonenumber-field[phonenumberslite]==7.1.0
# via argus-server (pyproject.toml)
django-picklefield==3.1
# via django-q2
django-q2==1.5.2
# via argus-server (pyproject.toml)
djangorestframework==3.14.0
# via
# argus-server (pyproject.toml)
Expand Down
6 changes: 6 additions & 0 deletions requirements-django41.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ django==4.1.11
# django-filter
# django-multiselectfield
# django-phonenumber-field
# django-picklefield
# django-q2
# djangorestframework
# drf-rw-serializers
# drf-spectacular
Expand All @@ -83,6 +85,10 @@ django-multiselectfield==0.1.12
# via argus-server (pyproject.toml)
django-phonenumber-field[phonenumberslite]==7.1.0
# via argus-server (pyproject.toml)
django-picklefield==3.1
# via django-q2
django-q2==1.5.2
# via argus-server (pyproject.toml)
djangorestframework==3.14.0
# via
# argus-server (pyproject.toml)
Expand Down
6 changes: 6 additions & 0 deletions requirements-django42.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ django==4.2.5
# django-filter
# django-multiselectfield
# django-phonenumber-field
# django-picklefield
# django-q2
# djangorestframework
# drf-rw-serializers
# drf-spectacular
Expand All @@ -83,6 +85,10 @@ django-multiselectfield==0.1.12
# via argus-server (pyproject.toml)
django-phonenumber-field[phonenumberslite]==7.1.0
# via argus-server (pyproject.toml)
django-picklefield==3.1
# via django-q2
django-q2==1.5.2
# via argus-server (pyproject.toml)
djangorestframework==3.14.0
# via
# argus-server (pyproject.toml)
Expand Down
6 changes: 6 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ django==3.2.21
# django-filter
# django-multiselectfield
# django-phonenumber-field
# django-picklefield
# django-q2
# djangorestframework
# drf-rw-serializers
# drf-spectacular
Expand All @@ -83,6 +85,10 @@ django-multiselectfield==0.1.12
# via argus-server (pyproject.toml)
django-phonenumber-field[phonenumberslite]==7.1.0
# via argus-server (pyproject.toml)
django-picklefield==3.1
# via django-q2
django-q2==1.5.2
# via argus-server (pyproject.toml)
djangorestframework==3.14.0
# via
# argus-server (pyproject.toml)
Expand Down
15 changes: 15 additions & 0 deletions src/argus/site/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"drf_spectacular",
"django_filters",
"phonenumber_field",
"django_q",

# Argus apps
"argus.auth",
Expand Down Expand Up @@ -301,3 +302,17 @@
#
# SOCIAL_AUTH_DATAPORTEN_FEIDE_KEY = SOCIAL_AUTH_DATAPORTEN_KEY
# SOCIAL_AUTH_DATAPORTEN_FEIDE_SECRET = SOCIAL_AUTH_DATAPORTEN_SECRET

# Django-Q2

Q_CLUSTER = {
'name': 'events',
'timeout': 60,
'time_zone': 'UTC',
'cpu_affinity': 1,
'label': 'Django Q2 Queue',
'redis': {
'host': '127.0.0.1',
'port': 6379,
'db': 0, },
}

0 comments on commit a3d0c65

Please sign in to comment.