Adding diario stuff to this project
authorLincoln de Sousa <lincoln@minaslivre.org>
Tue, 1 Jul 2008 00:47:48 +0000 (21:47 -0300)
committerLincoln de Sousa <lincoln@minaslivre.org>
Tue, 1 Jul 2008 00:47:48 +0000 (21:47 -0300)
settings.py
templates/base.html [new file with mode: 0644]
templates/diario/entry_detail.html [new file with mode: 0644]
templates/diario/entry_list.html [new file with mode: 0644]

index 8d93260..9e02337 100644 (file)
@@ -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 (file)
index 0000000..4479cee
--- /dev/null
@@ -0,0 +1,15 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pt_BR" lang="pt_BR">
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <link href="/site_media/css/geral.css" rel="stylesheet" type="text/css" />
+    <title>Gerenciador de eventos</title>
+  </head>
+  <body>
+    <h1>Gerenciador de eventos</h1>
+    <em>Livre para aprimorar</em>
+    {% block content %}
+    {% endblock %}
+  </body>
+</html>
diff --git a/templates/diario/entry_detail.html b/templates/diario/entry_detail.html
new file mode 100644 (file)
index 0000000..1797ffc
--- /dev/null
@@ -0,0 +1,9 @@
+{% extends "base.html" %}
+
+{% block content %}
+
+<h2>{{ entry.title }}</h2>
+{{ entry.body|safe }}
+<p>Posted on {{ entry.pub_date|date:"F j, Y" }}</p>
+
+{% endblock %}
diff --git a/templates/diario/entry_list.html b/templates/diario/entry_list.html
new file mode 100644 (file)
index 0000000..c38748c
--- /dev/null
@@ -0,0 +1,11 @@
+{% extends "base.html" %}
+
+{% block content %}
+
+{% for entry in entry_list %}
+  <h3><a href="{{ entry.get_absolute_url }}">{{ entry.title }}</a></h3>
+  {{ entry.body|safe }}  
+  <p>Posted on {{ entry.pub_date|date:"F j, Y" }}</p>
+{% endfor %}
+
+{% endblock %}