urls and views glue for faq and download

This commit is contained in:
Sanj 2011-04-26 00:59:20 +05:30
parent 95ade1a4c0
commit 8552c411ef
2 changed files with 9 additions and 2 deletions

View File

@ -18,8 +18,10 @@ urlpatterns = patterns('',
(r'^video/(?P<video_id>\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<story_id>\d+)$', 'festival.views.bpstory'),
(r'bestpractices/guideline/(?P<guideline_id>\d+)$', 'festival.views.bpguideline'),
(r'bestpractices/faq$', 'festival.views.bpfaq'),
(r'bestpractices/download$', 'festival.views.bpdownload'),
)

View File

@ -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")