From fd1c6250a466f52249376eb10a1c45b1cd5b3b68 Mon Sep 17 00:00:00 2001 From: adrigongv23 Date: Sat, 23 May 2026 12:16:38 +0200 Subject: [PATCH] =?UTF-8?q?Frontend:=20estructuraci=C3=B3n=20del=20directo?= =?UTF-8?q?rio=20y=20creaci=C3=B3n=20del=20archivo=20base?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Plataform_Web/templates/base.html | 106 ++++++++++++++++++++++++++++++ Plataform_Web/users/views.py | 6 +- 2 files changed, 111 insertions(+), 1 deletion(-) create mode 100644 Plataform_Web/templates/base.html diff --git a/Plataform_Web/templates/base.html b/Plataform_Web/templates/base.html new file mode 100644 index 0000000..96b9588 --- /dev/null +++ b/Plataform_Web/templates/base.html @@ -0,0 +1,106 @@ +{% load static %} + + + + + + {% block title %}Intranet | Formula Gades{% endblock title %} + + + + + + {% block extra_head %}{% endblock extra_head %} + + + + + +
+ {% block content %} + {% endblock content %} +
+ + + + + + {% block extra_js %}{% endblock extra_js %} + + \ No newline at end of file diff --git a/Plataform_Web/users/views.py b/Plataform_Web/users/views.py index 91ea44a..0c1eed7 100644 --- a/Plataform_Web/users/views.py +++ b/Plataform_Web/users/views.py @@ -1,3 +1,7 @@ from django.shortcuts import render +from django.contrib.auth.decorators import login_required -# Create your views here. +@login_required # Esto obliga a que el usuario tenga que loguearse antes de ver la web +def index(request): + # 'request.user' contiene los datos del usuario que está navegando + return render(request, 'index.html') \ No newline at end of file