Skip to content

Commit

Permalink
fix upper case error (#1193)
Browse files Browse the repository at this point in the history
  • Loading branch information
AtmegaBuzz authored Apr 3, 2023
1 parent 3bac767 commit 6a8ad6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions blt/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__))
PROJECT_NAME = os.environ.get("PROJECT_NAME", "BLT")
PROJECT_NAME_LOWER = PROJECT_NAME.lower()
PROJECT_NAME_UPPER = PROJECT_NAME.upper()

ADMIN_URL = os.environ.get("ADMIN_URL", "admin")
DOMAIN_NAME = os.environ.get("DOMAIN_NAME", "127.0.0.1") #domain.com (without www)
Expand Down
2 changes: 1 addition & 1 deletion website/templatetags/custom_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ def env(key):

@register.simple_tag
def logo(logo_type):
return static(F"img/{settings.PROJECT_NAME}_{logo_type}.png")
return static(F"img/{settings.PROJECT_NAME_UPPER}_{logo_type}.png")

0 comments on commit 6a8ad6f

Please sign in to comment.