#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2008 Étienne Loks # This program can be distributed under the terms of the GNU GPL. # See the file COPYING. from django.conf.urls.defaults import * urlpatterns = patterns('', # Uncomment this for admin: (r'^admin/', include('django.contrib.admin.urls')), (r'^papillon/$', 'papillon.polls.views.index'), (r'^papillon/edit/(?P\w+)/$', 'papillon.polls.views.createOrEdit'), (r'^papillon/poll/(?P\w+)/$', 'papillon.polls.views.poll'), (r'^papillon/poll/(?P\w+)/vote$', 'papillon.polls.views.poll'), (r'^static/(?P.*)$', 'django.views.static.serve', {'document_root': 'static/'}), )