summaryrefslogtreecommitdiff
path: root/urls.py
diff options
context:
space:
mode:
authoretienne2008-08-05 21:48:10 +0000
committeretienne2008-08-05 21:48:10 +0000
commitb10461003a785b6579e82fae380161396d94b68e (patch)
treeeb47f649ce160eddf79315036031e72aa67fbd17 /urls.py
Initial import
Diffstat (limited to 'urls.py')
-rw-r--r--urls.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/urls.py b/urls.py
new file mode 100644
index 0000000..9fb3b60
--- /dev/null
+++ b/urls.py
@@ -0,0 +1,17 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+# Copyright (C) 2008 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet>
+# 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<admin_url>\w+)/$', 'papillon.polls.views.createOrEdit'),
+ (r'^papillon/poll/(?P<poll_url>\w+)/$', 'papillon.polls.views.poll'),
+ (r'^papillon/poll/(?P<poll_url>\w+)/vote$', 'papillon.polls.views.poll'),
+ (r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': 'static/'}),
+)