summaryrefslogtreecommitdiff
path: root/urls.py
diff options
context:
space:
mode:
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')),
)