From 354b32b752537a8c6ec7a746537a684e73fddedd Mon Sep 17 00:00:00 2001 From: Celestino Rey Date: Fri, 19 Jul 2024 12:48:31 +0200 Subject: [PATCH] =?UTF-8?q?Configurado=20para=20que=20recargue=20las=20p?= =?UTF-8?q?=C3=A1ginas=20cuando=20cambien?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LyricsPy/servicios/lyrics/__init__.py | 1 + LyricsPy/servicios/lyrics/templates/404.html | 6 +++--- LyricsPy/servicios/lyrics/templates/add_album.html | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/LyricsPy/servicios/lyrics/__init__.py b/LyricsPy/servicios/lyrics/__init__.py index 7f58838..06b69c5 100644 --- a/LyricsPy/servicios/lyrics/__init__.py +++ b/LyricsPy/servicios/lyrics/__init__.py @@ -15,6 +15,7 @@ def create_app(): app.config['SECRET_KEY'] = 'secret-key-goes-here' app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///songs.db' app.config['UPLOAD_FOLDER'] = os.path.join(app.instance_path, 'uploads') + app.config['TEMPLATES_AUTO_RELOAD'] = True app.config['MAX_CONTENT_LENGTH'] = 16 * 1024 * 1024 # 16 MB máximo diff --git a/LyricsPy/servicios/lyrics/templates/404.html b/LyricsPy/servicios/lyrics/templates/404.html index 0d8a9d3..6fc7ab0 100644 --- a/LyricsPy/servicios/lyrics/templates/404.html +++ b/LyricsPy/servicios/lyrics/templates/404.html @@ -3,11 +3,11 @@ {% block content %}
-

404
Page Not Found

+

404
Página no encontrada

- Sorry, we can't find the page you're looking for. + Lo siento, no hemos podido encontrar la página que buscas.
- Go to home page + Ir a la página de inicio
{% endblock %} diff --git a/LyricsPy/servicios/lyrics/templates/add_album.html b/LyricsPy/servicios/lyrics/templates/add_album.html index 468c096..336d0c3 100644 --- a/LyricsPy/servicios/lyrics/templates/add_album.html +++ b/LyricsPy/servicios/lyrics/templates/add_album.html @@ -3,7 +3,7 @@ {% block content %}
-

Añadir nuevo Álbum

+

Añadir nuevo álbum

@@ -23,7 +23,7 @@
- +