Skip to content

Commit

Permalink
redis settings
Browse files Browse the repository at this point in the history
  • Loading branch information
brianjp93 committed Oct 5, 2024
1 parent 7433983 commit 53994f0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lolsite/settings_live.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

REDIS_URL = config('REDIS_URL', 'localhost')
CELERY_BROKER_URL = REDIS_URL
CELERY_RESULT_BACKEND = REDIS_URL
CELERY_RESULT_BACKEND = f"{REDIS_URL}/0"

CACHES = {
"default": {
Expand Down
2 changes: 1 addition & 1 deletion lolsite/settings_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

REDIS_URL = config('REDIS_URL', 'localhost')
CELERY_BROKER_URL = f"redis://{REDIS_URL}"
CELERY_RESULT_BACKEND = f"redis://{REDIS_URL}"
CELERY_RESULT_BACKEND = f"redis://{REDIS_URL}/0"

CACHES = {
"default": {
Expand Down
2 changes: 1 addition & 1 deletion requirements.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
beautifulsoup4<5
boto3>=1.34.69
celery>=5.3.6
celery[redis]>=5.3.6
dj-database-url
django~=5.1.1
django-debug-toolbar
Expand Down
6 changes: 4 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This file was autogenerated by uv via the following command:
# uv pip compile requirements.in -o requirements.txt --upgrade-package python-decouple
# uv pip compile requirements.in -o requirements.txt
amqp==5.2.0
# via kombu
annotated-types==0.6.0
Expand Down Expand Up @@ -147,7 +147,9 @@ python-dateutil==2.9.0.post0
python-decouple==3.8
pytz==2024.1
redis==4.6.0
# via django-redis
# via
# celery
# django-redis
requests==2.31.0
# via lolwrapper
s3transfer==0.10.1
Expand Down

0 comments on commit 53994f0

Please sign in to comment.