diff options
author | Sean Finney <seanius@debian.org> | 2010-05-13 11:19:53 +0200 |
---|---|---|
committer | Sean Finney <seanius@debian.org> | 2010-05-13 11:19:53 +0200 |
commit | 5924a11cfb9adfc57327d571f0f644cb1dcec8a0 (patch) | |
tree | adf6424dcef70bf94ec14f455c9bf9b9db4d9bc5 /urls.py | |
parent | 74cef20527c5381b4aa16976f9a15df470a195cd (diff) | |
download | patch-tracker-5924a11cfb9adfc57327d571f0f644cb1dcec8a0.tar.gz |
implement package/version view in django
Diffstat (limited to 'urls.py')
-rw-r--r-- | urls.py | 20 |
1 files changed, 9 insertions, 11 deletions
@@ -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')), ) |