Answer the question
In order to leave comments, you need to log in
How to correctly implement the navbar type setting?
It is necessary to implement the setting of the link type in the navbar, here are two screenshots for clarity:
<a class="navbar-brand" href="{% url 'main_page_url' %}">{% get_brand %}</a>
Answer the question
In order to leave comments, you need to log in
For inscriptions that rarely change (branding mentioned), I can offer this option: create a separate file, say, strings.py
SITE_NAME = 'Habr' # захардкожено
SITE_DESCRIPTION = os.getenv('SITE_DESCRIPTION') # или можно взять из переменных окружения
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question