Skip to content

Commit

Permalink
Use get
Browse files Browse the repository at this point in the history
  • Loading branch information
faucomte97 committed Apr 24, 2024
1 parent 515febb commit 5f0ebbb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/service/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
PIPELINE_ENABLED = False # True if assets should be compressed, False if not.
PIPELINE = {}

if "STATIC_MODE" in os.environ and os.environ["STATIC_MODE"] == "pipeline":
if os.environ.get("STATIC_MODE", "") == "pipeline":
STATICFILES_FINDERS = ["pipeline.finders.PipelineFinder"]
STATICFILES_STORAGE = "pipeline.storage.PipelineStorage"

Expand Down Expand Up @@ -105,6 +105,7 @@
"django.contrib.staticfiles.finders.AppDirectoriesFinder",
"django.contrib.staticfiles.finders.FileSystemFinder",
]
# pylint: disable-next=pointless-string-statement
"""END OF RAPID ROUTER SETTINGS"""


Expand Down

0 comments on commit 5f0ebbb

Please sign in to comment.