This commit is contained in:
some weird guy
2023-08-29 11:56:34 -07:00
parent 7909335304
commit f381d1d1af
14 changed files with 88 additions and 77 deletions
+5 -6
View File
@@ -1,14 +1,13 @@
try:
from closedverse.settings import brand_name
except ImportError:
from closedverse import settings
if not hasattr(settings, 'brand_name'):
# use default app name by default as brand name
from closedverse_main import apps
brand_name = apps.ClosedverseMainConfig.verbose_name
else:
brand_name = settings.brand_name
# for brand logo
from closedverse.settings import STATIC_URL
# variable for this and name are here for imports
brand_logo = STATIC_URL + 'img/menu-logo.svg'
brand_logo = settings.STATIC_URL + 'img/menu-logo.svg'
# the name of the function is merely what's imported into settings.py
def brand_name_universal(request):