Skip to content

Commit

Permalink
Use django settings for stylesheet path contextprocessor
Browse files Browse the repository at this point in the history
  • Loading branch information
elfjes authored and hmpf committed Nov 29, 2024
1 parent d2e267a commit 36621ad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/argus/htmx/context_processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
See django settings for ``TEMPLATES``.
"""

from .defaults import STYLESHEET_PATH
from . import defaults
from django.conf import settings


def path_to_stylesheet(request):
return {"path_to_stylesheet": STYLESHEET_PATH}
return {"path_to_stylesheet": getattr(settings, "STYLESHEET_PATH", defaults.STYLESHEET_PATH)}

0 comments on commit 36621ad

Please sign in to comment.