summaryrefslogtreecommitdiff
path: root/urls.py
diff options
context:
space:
mode:
authorSean Finney <seanius@debian.org>2010-05-13 11:19:53 +0200
committerSean Finney <seanius@debian.org>2010-05-13 11:19:53 +0200
commit5924a11cfb9adfc57327d571f0f644cb1dcec8a0 (patch)
treeadf6424dcef70bf94ec14f455c9bf9b9db4d9bc5 /urls.py
parent74cef20527c5381b4aa16976f9a15df470a195cd (diff)
downloadpatch-tracker-5924a11cfb9adfc57327d571f0f644cb1dcec8a0.tar.gz
implement package/version view in django
Diffstat (limited to 'urls.py')
-rw-r--r--urls.py20
1 files changed, 9 insertions, 11 deletions
diff --git a/urls.py b/urls.py
index 7ee9c67..456c9ab 100644
--- a/urls.py
+++ b/urls.py
@@ -1,19 +1,17 @@
+import os
+
from django.conf.urls.defaults import *
from django.contrib import admin
admin.autodiscover()
-# Uncomment the next two lines to enable the admin:
-# from django.contrib import admin
-# admin.autodiscover()
+import patchtracker
urlpatterns = patterns('',
- # Example:
- # (r'^debianpatchtracker/', include('debianpatchtracker.foo.urls')),
-
- # Uncomment the admin/doc line below and add 'django.contrib.admindocs'
- # to INSTALLED_APPS to enable admin documentation:
- # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
-
- # Uncomment the next line to enable the admin:
+ # admin interface (for debugging, mostly)
(r'^admin/', include(admin.site.urls)),
+ # static content
+ (r'^static/(?P<path>.*)$', 'django.views.static.serve',
+ {'document_root': os.path.sep.join([os.curdir, "static"])}),
+
+ (r'^', include('patchtracker.urls')),
)