From d7411f5af47f917e7705dc65924f4bf59a494426 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Fri, 2 Nov 2018 22:01:05 -0500 Subject: [PATCH] change templates html to djhtml --- core/templates/core/base.djhtml | 52 +++++++++++ core/templates/core/base.html | 53 ----------- project/templates/trabajo/index.djhtml | 114 ++++++++++++++++++++++++ project/templates/trabajo/index.html | 116 ------------------------- project/views.py | 2 +- 5 files changed, 167 insertions(+), 170 deletions(-) create mode 100644 core/templates/core/base.djhtml delete mode 100644 core/templates/core/base.html create mode 100644 project/templates/trabajo/index.djhtml delete mode 100644 project/templates/trabajo/index.html diff --git a/core/templates/core/base.djhtml b/core/templates/core/base.djhtml new file mode 100644 index 0000000..83af8d3 --- /dev/null +++ b/core/templates/core/base.djhtml @@ -0,0 +1,52 @@ + + + + + + Sitio personal de Jesús + {% load static %} + + + + + + +
+
+ +
+
+

Jesús

+

Desarrollador

+
+
+
+
+ + +
+ {% block content %}{% endblock %} +
+ + {% block footer %} + + {% block contacto %}{% endblock %} + + {% endblock %} + + + + + + diff --git a/core/templates/core/base.html b/core/templates/core/base.html deleted file mode 100644 index 0ebf55b..0000000 --- a/core/templates/core/base.html +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - Sitio personal de Jesús - {% load static %} - - - - - - -
-
- -
-
-

Jesús

-

Desarrollador

-
-
-
-
- - -
- {% block content %}{% endblock %} -
- - {% block footer %} - - {% block contacto %}{% endblock %} - - {% endblock %} - - - - - - - diff --git a/project/templates/trabajo/index.djhtml b/project/templates/trabajo/index.djhtml new file mode 100644 index 0000000..904689c --- /dev/null +++ b/project/templates/trabajo/index.djhtml @@ -0,0 +1,114 @@ +{% extends 'core/base.djhtml' %} + +{% load static %} + +{% block content %} +
+
+
+ Jesús Eduardo +
+
+

Acerca de

+

Consultor y desarrollador de Software Libre. Hacker de Hyperbola GNU/Linux-Libre.

+
+
+
+ + +
+
+

Proyectos

+
+ + {% for project in projects %} +
+
+ {{project.title}} +
+
+

+ {% if project.link %} + {{project.title}} + {% endif %} +

+

{{project.decription}}

+
+
+ {% endfor %} + +
+
+
+{% endblock %} + + +{% block footer %} + +{% endblock %} diff --git a/project/templates/trabajo/index.html b/project/templates/trabajo/index.html deleted file mode 100644 index dd700e2..0000000 --- a/project/templates/trabajo/index.html +++ /dev/null @@ -1,116 +0,0 @@ -{% extends 'core/base.html' %} - -{% load static %} - -{% block content %} -
-
-
- Jesús Eduardo -
-
-

Acerca de

-

Consultor y desarrollador de Software Libre. Hacker de Hyperbola GNU/Linux-Libre.

-
-
-
- - -
-
-

Proyectos

-
- - {% for project in projects %} -
-
- {{project.title}} -
-
-

- {% if project.link %} - - {{project.title}} - {% endif %} -

-

{{project.decription}}

-
-
- {% endfor %} - -
-
-
-{% endblock %} - - - {% block footer %} - - {% endblock %} diff --git a/project/views.py b/project/views.py index 1038a04..381985c 100644 --- a/project/views.py +++ b/project/views.py @@ -33,5 +33,5 @@ def home(request): return redirect(reverse('home')+"?fail") # EndForm - return render(request, 'trabajo/index.html', + return render(request, 'trabajo/index.djhtml', {'projects': projects, 'form': contact_form})