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'), name='message_detail'), url(r'^sitemap\.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': sitemaps}), )
'eleccion/<slug:slug>/face-to-face/<slug:slug_candidate_one>/<slug:slug_candidate_two>', FaceToFaceView.as_view( template_name='elections/compare_candidates.html'), name='face_to_face_two_candidates_detail_view'), # one candidate for compare path('eleccion/<slug:slug>/face-to-face/<slug:slug_candidate_one>', ElectionDetailView.as_view( template_name='elections/compare_candidates.html'), name='face_to_face_one_candidate_detail_view'), # no one candidate path('eleccion/<slug:slug>/face-to-face', ElectionDetailView.as_view( template_name='elections/compare_candidates.html'), name='face_to_face_no_candidate_detail_view'), path('eleccion/<slug:election_slug>/<slug:slug>', CandidateDetailView.as_view( template_name='elections/candidate_detail.html'), name='candidate_detail_view'), path('candidaturas/<slug:area_slug>/<slug:slug>', cache_page(60 * settings.CACHE_MINUTES)(CandidateDetailView.as_view( template_name='elections/candidate_detail.html')), name='candidate_detail_view_area'), path('eleccion/<slug:slug>/extra_info.html', ElectionDetailView.as_view(template_name='elections/extra_info.html'), name='election_extra_info'), path('candidaturas/<slug>', AreaDetailView.as_view(template_name='elections/area.html'), name='area'), path('ayudanos/<slug>', ElectionDetailView.as_view(template_name='elections/ayudanos.html'), name='help_election'), path('candidaturas',
MatchResultView.as_view(), name='match_result'), url(r'^match_result_ajax/?$', MatchResultAjaxView.as_view(), name='match_result_ajax'), url(r'^perguntas/?$', MeRepresentaMeiaLaranjaWizardForm.as_view(), name='questionary'), url(r'^answers/?$', MeRepresentaMeiaLaranjaQuestionsWizardForm.as_view(), name='questions'), url(r'^candidatos/', include('merepresenta.candidatos.urls')), url(r'^eleccion/(?P<election_slug>[-\w]+)/(?P<slug>[-\w]+)/?$', CandidateDetailView.as_view(template_name='merepresenta/candidate_detail.html'), name='candidate_detail_view' ), url(r'^candidatos/media_naranja/(?P<slug>[-\w]+)/(?P<candidate_slug>[-\w]+)/?$', MeRepresentaMeiaLaranja.as_view(), name='complete_12_naranja'), url(r'^candidatos/?', include('backend_candidate.urls', namespace='backend_candidate')), url(r'^accounts/?', include('registration.backends.hmac.urls')), url(r'^voluntarios/', include('merepresenta.voluntarios.urls')), url(r'^faq/?$', TemplateView.as_view(template_name="merepresenta/faq.html"), name='faq'), ]
url(r'^pautas/?$', TemplateView.as_view(template_name="merepresenta/pautas.html"), name='pautas'), url(r'^eleitora/?$', MatchView.as_view(), name='match'), url(r'^resultado/?$', MatchResultView.as_view(), name='match_result'), url(r'^match_result_ajax/?$', MatchResultAjaxView.as_view(), name='match_result_ajax'), url(r'^perguntas/?$', MeRepresentaMeiaLaranjaWizardForm.as_view(), name='questionary'), url(r'^answers/?$', MeRepresentaMeiaLaranjaQuestionsWizardForm.as_view(), name='questions'), url(r'^candidatos/', include('merepresenta.candidatos.urls')), url(r'^eleccion/(?P<election_slug>[-\w]+)/(?P<slug>[-\w]+)/?$', CandidateDetailView.as_view( template_name='merepresenta/candidate_detail.html'), name='candidate_detail_view'), url(r'^candidatos/media_naranja/(?P<slug>[-\w]+)/(?P<candidate_slug>[-\w]+)/?$', MeRepresentaMeiaLaranja.as_view(), name='complete_12_naranja'), url(r'^candidatos/?', include('backend_candidate.urls', namespace='backend_candidate')), url(r'^accounts/?', include('registration.backends.hmac.urls')), url(r'^voluntarios/', include('merepresenta.voluntarios.urls')), url(r'^faq/?$', TemplateView.as_view(template_name="merepresenta/faq.html"), name='faq'), ]
ElectionDetailView.as_view(template_name='elections/compare_candidates.html'), name='face_to_face_one_candidate_detail_view'), #no one candidate url(r'^election/(?P<slug>[-\w]+)/face-to-face/?$', ElectionDetailView.as_view(template_name='elections/compare_candidates.html'), 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/?$', ElectionDetailView.as_view(template_name='elections/ranking_candidates.html'), name='ranking_detail_view'), url(r'^election/(?P<election_slug>[-\w]+)/(?P<slug>[-\w]+)/?$', CandidateDetailView.as_view(template_name='elections/candidate_detail.html'), name='candidate_detail_view' ), url(r'^election/(?P<slug>[-\w]+)/extra_info.html$', ElectionDetailView.as_view(template_name='elections/extra_info.html'), name='election_extra_info'), ) urlpatterns += patterns('', url(r'^cache/(?P<path>.*)$','django.views.static.serve', {'document_root': media_root}) )