From 0b854bc8346302a407824e253e167acdfee513bc Mon Sep 17 00:00:00 2001 From: pydanny Date: Fri, 18 Jun 2010 18:10:51 -0500 Subject: [PATCH] View errors cleaned up --- tos/templates/tos/tos.html | 2 +- tos/templates/tos/tos_check.html | 2 +- tos/urls.py | 7 ++++++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/tos/templates/tos/tos.html b/tos/templates/tos/tos.html index 18389a6..398a0bb 100644 --- a/tos/templates/tos/tos.html +++ b/tos/templates/tos/tos.html @@ -1,3 +1,3 @@ -

Terms of Service as of {{ tos.created|date:"SHORT_DATE_FORMAT }}

+

Terms of Service as of {{ tos.created|date:"SHORT_DATE_FORMAT" }}

{{ tos.content }} \ No newline at end of file diff --git a/tos/templates/tos/tos_check.html b/tos/templates/tos/tos_check.html index d5447d1..5bfe7d5 100644 --- a/tos/templates/tos/tos_check.html +++ b/tos/templates/tos/tos_check.html @@ -1,7 +1,7 @@ {% if note %}

{{ note }} {% else %} -

Terms of Service as of {{ tos.created|date:"SHORT_DATE_FORMAT }}

+

Terms of Service as of {{ tos.created|date:"SHORT_DATE_FORMAT" }}

{% endif %} {{ tos.content }} diff --git a/tos/urls.py b/tos/urls.py index 6030133..73924f8 100644 --- a/tos/urls.py +++ b/tos/urls.py @@ -1,6 +1,7 @@ from django.conf.urls.defaults import * from django.views.generic.simple import direct_to_template +from tos.models import TermsOfService from tos.views import check_tos urlpatterns = patterns('', @@ -15,7 +16,11 @@ urlpatterns = patterns('', url( regex = '^$', view = direct_to_template, - kwargs = {'template': 'tos/tos.html'}, + kwargs = {'template': 'tos/tos.html', + 'extra_context':{ + 'tos':TermsOfService.objects.get_current_tos() + }, + }, name = 'tos', ), ) \ No newline at end of file