#!/usr/bin/env python
# -*- coding: utf-8 -*-

#    This file is part of FLOSS Talks.
#
#    FLOSS Talks is free software: you can redistribute it and/or modify
#    it under the terms of the GNU Affero General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#
#    FLOSS Talks is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU Affero General Public License for more details.
#
#    You should have received a copy of the GNU Affero General Public License
#    along with FLOSS Talks.  If not, see <http://www.gnu.org/licenses/>.
from django.conf.urls import patterns, include, url
from flosstalks_app.models import Project, Series
from flosstalks_app.views import TemplateView, ListView, DetailView

urlpatterns = patterns('',
    url(r'^$', TemplateView.as_view(template_name='index.html'), name='home'),
    url(r'^projects$',
        ListView.as_view(
            queryset=Project.objects.exclude(status="HD").order_by('name'),
            context_object_name='projects_list',
            template_name='projects_list.html'),
        name='projects'),
    url(r'^series$',
        ListView.as_view(
            model=Series,
            context_object_name='series_list',
            template_name='series_list.html'),
        name='series_list'),
    url(r'^about$', TemplateView.as_view(template_name='about.html'), name='about'),
    url(r'^contact$', TemplateView.as_view(template_name='contact.html'), name='contact'),
    url(r'^p/(?P<pk>\d+)/$',
        DetailView.as_view(
            model=Project,
            template_name='project_detail.html'),
        name='project'),
    url(r'^s/(?P<pk>\d+)/$',
        DetailView.as_view(
            model=Series,
            template_name='series_detail.html'),
        name='series'),
#    url(r'^(?P<pk>\d+)/results/$',
#        DetailView.as_view(
#            model=Poll,
#            template_name='polls/results.html'),
#        name='poll_results'),
#    url(r'^(?P<poll_id>\d+)/vote/$', 'polls.views.vote'),
)

@@ -1980,236 +1980,6 @@
 '),%0A
-#    url(r'%5E(?P%3Cpk%3E%5Cd+)/results/$',%0A#        DetailView.as_view(%0A#            model=Poll,%0A#            template_name='polls/results.html'),%0A#        name='poll_results'),%0A#    url(r'%5E(?P%3Cpoll_id%3E%5Cd+)/vote/$', 'polls.views.vote'),%0A
 )%0A

Remove commented dummy code