Update logo settings references

This commit is contained in:
Matthias 2022-04-27 13:00:03 +02:00
parent f06a11e206
commit 2c653504ec
No known key found for this signature in database
GPG Key ID: AB6D0E6C4CB65093
2 changed files with 4 additions and 5 deletions

View File

@ -922,9 +922,8 @@ CUSTOMIZE = get_setting(
)
CUSTOM_LOGO = get_setting(
'INVENTREE_LOGO',
CONFIG.get('logo', False),
False
'INVENTREE_CUSTOM_LOGO',
CUSTOMIZE.get('logo', False)
)
# check that the logo-file exsists in media

View File

@ -188,10 +188,10 @@ static_root: '/home/inventree/data/static'
# Customization options
# Add custom messages to the login page or main interface navbar or exchange the logo
# Use environment variable INVENTREE_CUSTOMIZE or INVENTREE_LOGO
# Use environment variable INVENTREE_CUSTOMIZE or INVENTREE_CUSTOM_LOGO
# customize:
# login_message: |
# InvenTree demo instance - <a href='https://inventree.readthedocs.io/en/latest/demo/'> Click here for login details</a>
# navbar_message: |
# InvenTree demo mode <a href='https://inventree.readthedocs.io/en/latest/demo/'><span class='fas fa-info-circle'></span></a>
# logo: logo.png
# logo: logo.png