Commit 2188b9a3 authored by BERJON Matthieu's avatar BERJON Matthieu

Update of the login redirection and namespace

I forgot to finish all the namespace updates and redirection for login
and signup. It's not fixed.
Signed-off-by: BERJON Matthieu's avatarMatthieu Berjon <matthieu.berjon@inria.fr>
parent f0a3e175
......@@ -15,10 +15,10 @@
</li>
{% if not user.is_authenticated %}
<li class="nav-item">
<a class="nav-link" href="{% url 'login' %}"><i class="fas fa-sign-in-alt"></i> Login</a>
<a class="nav-link" href="{% url 'main:login' %}"><i class="fas fa-sign-in-alt"></i> Login</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{% url 'signup' %}"><i class="fas fa-user-plus"></i> Sign up</a>
<a class="nav-link" href="{% url 'main:signup' %}"><i class="fas fa-user-plus"></i> Sign up</a>
</li>
{% else %}
<li class="nav-item">
......
......@@ -12,8 +12,5 @@
<button class="btn btn-primary" type="submit">Login</button>
</form>
<p><a href="{% url 'signup' %}">Register</a> - <a href="{% url 'password_reset' %}">Forgot your password?</a></p>
{% comment %}
<p><a href="{% url password_reset %}">Forgot your password?</a></p>
{% endcomment %}
<p><a href="{% url 'main:signup' %}">Register</a> - <a href="{% url 'main:password_reset' %}">Forgot your password?</a></p>
{% endblock %}
......@@ -71,8 +71,8 @@ MIGRATION_MODULES = {
AUTHENTIFICATION_BACKENDS = [
'django.contrib.auth.backends.ModelBackend',
]
LOGIN_REDIRECT_URL = 'poc_home'
LOGOUT_REDIRECT_URL = 'poc_home'
LOGIN_REDIRECT_URL = 'poc/home'
LOGOUT_REDIRECT_URL = 'poc/home'
# PASSWORDS
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment