Added login/register buttons to navbar
This commit is contained in:
parent
5e8b759b42
commit
16b4a9ef0d
|
@ -144,5 +144,7 @@ AUTHENTICATION_BACKENDS = (
|
|||
|
||||
|
||||
# Sites and social auth
|
||||
ACCOUNT_LOGOUT_ON_GET = True
|
||||
|
||||
SITE_ID = 1
|
||||
LOGIN_REDIRECT_URL = '/account/profile/'
|
||||
LOGIN_REDIRECT_URL = '/'
|
||||
|
|
|
@ -66,8 +66,11 @@
|
|||
</div>
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="ui dropdown item">
|
||||
No logged
|
||||
<div class="ui item">
|
||||
<a href="{% url 'account_login' %}">{% trans "Login" %}</a>
|
||||
</div>
|
||||
<div class="ui item">
|
||||
<a href="{% url 'account_signup' %}">{% trans "Register" %}</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue