Mercurial > public > madeira
diff mysite/urls.py @ 1:0dcfcdf50c62
Initial import of Madeira project from the private repository.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Mon, 06 Apr 2009 03:10:59 +0000 |
parents | |
children | ead7bd49c9e0 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mysite/urls.py Mon Apr 06 03:10:59 2009 +0000 @@ -0,0 +1,16 @@ +from django.conf.urls.defaults import * +from django.contrib import admin +from mysite import settings + +admin.autodiscover() + +urlpatterns = patterns('', + (r'^', include('mysite.band.urls')), + (r'^admin/', include(admin.site.urls)), + (r'^photologue/', include('mysite.photologue.urls')), +) + +if settings.DEBUG: + urlpatterns += patterns('', + (r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}), + )