Browse Source

Decoración de la página de login I. Arreglos en login_redirect

politica
Celestino Rey 1 year ago
parent
commit
ec4b057df1
3 changed files with 10 additions and 10 deletions
  1. +1
    -1
      Libros/biblioteca/biblioteca/settings.py
  2. +9
    -9
      Libros/biblioteca/gestion/templates/registration/login.html
  3. BIN
      Libros/biblioteca/libros.sqlite3

+ 1
- 1
Libros/biblioteca/biblioteca/settings.py View File

@ -124,7 +124,7 @@ STATIC_URL = 'static/'
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
LOGIN_URL = '/accounts/login/' LOGIN_URL = '/accounts/login/'
LOGIN_REDIRECT_URL = '/gestion/libros'
LOGIN_REDIRECT_URL = 'principal'
LOGOUT_REDIRECT_URL = 'principal' LOGOUT_REDIRECT_URL = 'principal'
AUTH_USER_MODEL = "gestion.ReyMotaUser" AUTH_USER_MODEL = "gestion.ReyMotaUser"

+ 9
- 9
Libros/biblioteca/gestion/templates/registration/login.html View File

@ -1,14 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<title>Iniciar Sesión</title>
</head>
<body>
{% extends 'base.html' %}
{% block title %}Iniciar Sesión{% endblock %}
{% block content %}
<h2>Iniciar Sesión</h2> <h2>Iniciar Sesión</h2>
<form method="post"> <form method="post">
{% csrf_token %} {% csrf_token %}
{{ form.as_p }} {{ form.as_p }}
<button type="submit">Ingresar</button>
<button type="submit">Entrar</button>
</form> </form>
</body>
</html>
{% endblock %}

BIN
Libros/biblioteca/libros.sqlite3 View File


Loading…
Cancel
Save