From 81951ad76272c146c977782a14fd9ae585f8065b Mon Sep 17 00:00:00 2001 From: Celestino Rey Date: Wed, 7 Aug 2024 08:54:01 +0200 Subject: [PATCH] =?UTF-8?q?Bot=C3=B3n=20de=20logout?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Libros/biblioteca/Dockerfile | 36 +++++ Libros/biblioteca/db.sqlite3 | Bin 147456 -> 147456 bytes .../gestion/templates/_cabecera.html | 31 +++++ .../gestion/templates/_navegacion.html | 6 +- .../biblioteca/gestion/templates/fotoperfil | 5 + .../templates/registration/logout.html | 10 ++ Prueba/Pipfile | 11 ++ Prueba/db.sqlite3 | Bin 0 -> 131072 bytes Prueba/manage.py | 22 ++++ Prueba/misitio/__init__.py | 0 Prueba/misitio/asgi.py | 16 +++ Prueba/misitio/settings.py | 123 ++++++++++++++++++ Prueba/misitio/urls.py | 22 ++++ Prueba/misitio/wsgi.py | 16 +++ 14 files changed, 295 insertions(+), 3 deletions(-) create mode 100644 Libros/biblioteca/Dockerfile create mode 100644 Libros/biblioteca/gestion/templates/fotoperfil create mode 100644 Libros/biblioteca/gestion/templates/registration/logout.html create mode 100644 Prueba/Pipfile create mode 100644 Prueba/db.sqlite3 create mode 100755 Prueba/manage.py create mode 100644 Prueba/misitio/__init__.py create mode 100644 Prueba/misitio/asgi.py create mode 100644 Prueba/misitio/settings.py create mode 100644 Prueba/misitio/urls.py create mode 100644 Prueba/misitio/wsgi.py diff --git a/Libros/biblioteca/Dockerfile b/Libros/biblioteca/Dockerfile new file mode 100644 index 0000000..836698d --- /dev/null +++ b/Libros/biblioteca/Dockerfile @@ -0,0 +1,36 @@ +# My Django Project +# Version: 1.0 + +# FROM - Image to start building on. +FROM python:3 + + +# PROJECT SETUP +# ---------------- + +# sets the working directory +WORKDIR /usr/src/django-docker + +# copy these two files from to +# = current directory on host machine +# = filesystem of the container +COPY ../Pipfile* ./ + +# install pipenv on the container +RUN pip install -U pipenv + +# install project dependencies +RUN pipenv install + +# copy all files and directories from to +COPY . . + + +# RUN SERVER +# ------------ + +# expose the port +EXPOSE 8000 + +# Command to run +CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"] diff --git a/Libros/biblioteca/db.sqlite3 b/Libros/biblioteca/db.sqlite3 index 38c8d39ef8c825ebdaea0df31d9dafd658eef820..9fc262d1b22be04c3df5b3e90025fbe046820c2b 100644 GIT binary patch delta 46 zcmZo@;B08%oFL8UFj2;t(P3jkRKB3Of`OTpk-3$LiJqCIk)fqU^XdHUr}G(2F8}~H C{|-U` delta 46 zcmZo@;B08%oFL6;Gf~Ew(Pm>pRKB38f`O%#vALCzg`SClp@pGA^XdHUr}G(2F8}~G CG!7{M diff --git a/Libros/biblioteca/gestion/templates/_cabecera.html b/Libros/biblioteca/gestion/templates/_cabecera.html index 29c78e7..ddf33be 100644 --- a/Libros/biblioteca/gestion/templates/_cabecera.html +++ b/Libros/biblioteca/gestion/templates/_cabecera.html @@ -11,6 +11,24 @@ Menu + +
+ + + +
+ + @@ -69,6 +87,8 @@ + {% if user.is_authenticated %} +