コード例 #1
0
		name='face_to_face_one_candidate_detail_view'),
	#no one candidate
	url(r'^election/(?P<slug>[-\w]+)/face-to-face/?$',
		cache_page(ElectionDetailView.as_view(template_name='elections/compare_candidates.html'), 60 * settings.CACHE_MINUTES),
		name='face_to_face_no_candidate_detail_view'),
	#soulmate
	url(r'^election/(?P<slug>[-\w]+)/soul-mate/?$',
		SoulMateDetailView.as_view(template_name='elections/soulmate_candidate.html'),
		name='soul_mate_detail_view'),
	#ask
	url(r'^election/(?P<slug>[-\w]+)/ask/?$',
		ElectionAskCreateView.as_view(template_name='elections/ask_candidate.html'), 
		name='ask_detail_view'),
	#ranking
	url(r'^election/(?P<slug>[-\w]+)/ranking/?$',
		cache_page(ElectionRankingView.as_view(template_name='elections/ranking_candidates.html'), 60 * settings.CACHE_MINUTES),
		name='ranking_detail_view'),
	url(r'^election/(?P<election_slug>[-\w]+)/(?P<slug>[-\w]+)/?$', 
		cache_page(CandidateDetailView.as_view(template_name='elections/candidate_detail.html'), 60 * settings.CACHE_MINUTES),
		name='candidate_detail_view'
		),
	url(r'^election/(?P<election_slug>[-\w]+)/(?P<slug>[-\w]+)/questions?$', 
		QuestionsPerCandidateView.as_view(template_name='elections/questions_per_candidate.html'),
		name='questions_per_candidate'
		),
	url(r'^election/(?P<slug>[-\w]+)/extra_info.html$',
		ElectionDetailView.as_view(template_name='elections/extra_info.html'), 
		name='election_extra_info'),
	#message_detail
	url(r'^election/(?P<election_slug>[-\w]+)/messages/(?P<pk>\d+)/?$',
		MessageDetailView.as_view(template_name='elections/message_detail.html'),