From 8552c411efcf507f869fd8efbdb7f9fb72717fd1 Mon Sep 17 00:00:00 2001 From: Sanj Date: Tue, 26 Apr 2011 00:59:20 +0530 Subject: [PATCH] urls and views glue for faq and download --- itf/festival/urls.py | 6 ++++-- itf/festival/views.py | 5 +++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/itf/festival/urls.py b/itf/festival/urls.py index 08aa4e9..2053595 100644 --- a/itf/festival/urls.py +++ b/itf/festival/urls.py @@ -18,8 +18,10 @@ urlpatterns = patterns('', (r'^video/(?P\d+)$', 'festival.views.video', ), (r'bestpractices$', 'festival.views.bestpractices'), (r'bestpractices/stories$', 'festival.views.bpstories'), - (r'bestpractices/guidelines', 'festival.views.bpguidelines'), - (r'bestpractices/glossary', 'festival.views.bpglossary'), + (r'bestpractices/guidelines$', 'festival.views.bpguidelines'), + (r'bestpractices/glossary$', 'festival.views.bpglossary'), (r'bestpractices/story/(?P\d+)$', 'festival.views.bpstory'), (r'bestpractices/guideline/(?P\d+)$', 'festival.views.bpguideline'), + (r'bestpractices/faq$', 'festival.views.bpfaq'), + (r'bestpractices/download$', 'festival.views.bpdownload'), ) diff --git a/itf/festival/views.py b/itf/festival/views.py index e4c8e13..07130d4 100644 --- a/itf/festival/views.py +++ b/itf/festival/views.py @@ -215,4 +215,9 @@ def bpguideline(request, guideline_id): guideline_dict = Guideline.objects.get(pk=guideline_id).get_dict() return render_to_response("bpguideline.html", guideline_dict) +def bpfaq(request): + return render_to_response("bpfaq.html") + +def bpdownload(request): + return render_to_response("bpdownload.html")