summaryrefslogtreecommitdiff
path: root/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'urls.py')
-rw-r--r--urls.py24
1 files changed, 19 insertions, 5 deletions
diff --git a/urls.py b/urls.py
index 9fb3b60..9db8686 100644
--- a/urls.py
+++ b/urls.py
@@ -1,17 +1,31 @@
#!/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.
+
+# This program 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.
+
+# This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
+
+# See the file COPYING for details.
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/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/'}),
+ (r'^static/(?P<path>.*)$', 'django.views.static.serve',
+ {'document_root': 'static/'}),
)