I recently completed a django app, but I'm facing an unusual issue with the bootstrap navbar not displaying menu items on mobile devices.
When I access my app from a mobile browser, the hamburger menu fails to expand and show the navigation items. It's quite perplexing.
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<a class="navbar-brand" href="#"><img src="{% static 'images/logo.png' %}"></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
{% if user.is_authenticated %}
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="{% url 'dashboard:transactions' %}">Transactions</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{% url 'dashboard:quote' %}">Quote Tool</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{% url 'dashboard:tracking' %}">My Projects</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{% url 'dashboard:home' %}">Home</a>
</li>
<a class="nav-link" href="{% url 'dashboard:support' %}">Support</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{% url 'logout' %}">Logout</a>
</li>
</li>
</ul>
{% else %}
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="{% url 'register' %}">Sign up</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{% url 'login' %}">Login</a>
</li>
</li>
<li class="nav-item">
<a class="nav-link" href="{% url 'dashboard:home' %}">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{% url 'dashboard:quote' %}">Quote Tool</a>
</li>
</ul>
</div>
{% endif %}
</div>
</nav>