From: Lincoln de Sousa Date: Tue, 1 Jul 2008 00:47:48 +0000 (-0300) Subject: Adding diario stuff to this project X-Git-Tag: 200807081126~13 X-Git-Url: http://git.cascardo.info/?p=cascardo%2Fema.git;a=commitdiff_plain;h=bc4f351e6e0062dfd1aa8049b1321bf1195edc86;ds=sidebyside Adding diario stuff to this project --- 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 %}