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 38c8d39..9fc262d 100644 Binary files a/Libros/biblioteca/db.sqlite3 and b/Libros/biblioteca/db.sqlite3 differ 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 %} +