From bc4f351e6e0062dfd1aa8049b1321bf1195edc86 Mon Sep 17 00:00:00 2001 From: Lincoln de Sousa Date: Mon, 30 Jun 2008 21:47:48 -0300 Subject: [PATCH] Adding diario stuff to this project --- settings.py | 2 ++ templates/base.html | 15 +++++++++++++++ templates/diario/entry_detail.html | 9 +++++++++ templates/diario/entry_list.html | 11 +++++++++++ 4 files changed, 37 insertions(+) create mode 100644 templates/base.html create mode 100644 templates/diario/entry_detail.html create mode 100644 templates/diario/entry_list.html diff --git a/settings.py b/settings.py index 8d93260..9e02337 100644 --- a/settings.py +++ b/settings.py @@ -86,6 +86,7 @@ TEMPLATE_DIRS = ( # "C:/www/django/templates". Always use forward slashes, even on # Windows. Don't forget to use absolute paths, not relative # paths. + INSTANCE('templates'), ) INSTALLED_APPS = ( @@ -94,5 +95,6 @@ INSTALLED_APPS = ( 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', + 'diario', 'ema.eventos', ) diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..4479cee --- /dev/null +++ b/templates/base.html @@ -0,0 +1,15 @@ + + + + + + Gerenciador de eventos + + +

Gerenciador de eventos

+ Livre para aprimorar + {% block content %} + {% endblock %} + + diff --git a/templates/diario/entry_detail.html b/templates/diario/entry_detail.html new file mode 100644 index 0000000..1797ffc --- /dev/null +++ b/templates/diario/entry_detail.html @@ -0,0 +1,9 @@ +{% extends "base.html" %} + +{% block content %} + +

{{ entry.title }}

+{{ entry.body|safe }} +

Posted on {{ entry.pub_date|date:"F j, Y" }}

+ +{% endblock %} diff --git a/templates/diario/entry_list.html b/templates/diario/entry_list.html new file mode 100644 index 0000000..c38748c --- /dev/null +++ b/templates/diario/entry_list.html @@ -0,0 +1,11 @@ +{% extends "base.html" %} + +{% block content %} + +{% for entry in entry_list %} +

{{ entry.title }}

+ {{ entry.body|safe }} +

Posted on {{ entry.pub_date|date:"F j, Y" }}

+{% endfor %} + +{% endblock %} -- 2.20.1