Skip to content

Commit

Permalink
Change os.environ.get() to config() for REDIS_URL in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
YanZhylavy committed Aug 28, 2024
1 parent 6c37887 commit 32565db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BackEnd/forum/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@

WSGI_APPLICATION = "forum.wsgi.application"

CELERY_BROKER_URL = os.environ.get("REDIS_URL", "redis://127.0.0.1:6379/0")
CELERY_RESULT_BACKEND = os.environ.get("REDIS_URL", "redis://127.0.0.1:6379/0")
CELERY_BROKER_URL = config("REDIS_URL")
CELERY_RESULT_BACKEND = config("REDIS_URL")

DATABASES = {
"default": {
Expand Down

0 comments on commit 32565db

Please sign in to comment.