I went to the Pages section of my site's admin menu. I added a Link titled 
"Log in/Register" with the URL "login_register."

In my navbar in `base.html`, I have this Django/HTML:
            {% for page in page_branch %}
                {% if not has_home and page.is_primary and forloop.first %}
                    <li{% if on_home %} class="nav-item active"{% endif %} 
id="dropdown-menu-home">
                        <a class="nav-link" href="{% url "home" %}">{% 
trans "Home" %}</a>
                    </li>
                {% endif %}
                {% if page.in_menu %}
                    <li class="nav-item  {% if page.is_current_or_ascendant 
%}active{% endif %}"
                        id="{{ page.html_id }}">
                        <a class="nav-link" href="{{ page.get_absolute_url 
}}">{{ page.title }}</a>
                    </li>
                {% endif %}
            {% endfor %}

My `urls.py` has this line:
url("^login_register/$", views.login_register, name="login_register"),

I would like "Log in/Register" to not appear in the navbar when a user is 
logged in. Is there anything special I need to do in Mezzanine, or can this 
be done with just Django libraries?

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to