[Arbrows-commit] arbrows commit : r112 - trunk/src/arbrows

From : arbrows-commit@... , the 19th juin 2009 13:59
  • 2009-06-19 13:59:00 — arbrows-commit@... - [Arbrows-commit] arbrows commit : r112 - trunk/src/arbrows

Author: nahuel Date: 2009-06-19 13:59:00 +0200 (Fri, 19 Jun 2009) New Revision: 112 Modified:    trunk/src/arbrows/urls.py Log: Add urls to serve static files like css images and js Modified: trunk/src/arbrows/urls.py =================================================================== --- trunk/src/arbrows/urls.py 2009-06-19 11:58:40 UTC (rev 111) +++ trunk/src/arbrows/urls.py 2009-06-19 11:59:00 UTC (rev 112) @@ -2,6 +2,7 @@    from arbrows.browser.views import *  from arbrows.browser import views +from django.conf import settings    # Uncomment the next two lines to enable the admin:  # from django.contrib import admin @@ -15,5 +16,8 @@                         (r'^browser/activate/(?P\w+)','arbrows.browser.views.activate'),                         (r'^browser/(?P[^\/]+)/$','arbrows.browser.views.list'),                         (r'^browser/(?P[^\/]+)/(?P\d{1,4})/(?P\d{1,2})/$','arbrows.browser.views.month'), -                       (r'^browser/(?P[^\/]+)/(?P\w+)/$','arbrows.browser.views.message') +                       (r'^browser/(?P[^\/]+)/(?P\w+)/$','arbrows.browser.views.message'), +                       (r'^css/(?P.*\.css)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT + '/css/'}), +                       (r'^js/(?P.*\.js)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT + '/js/'}), +                       (r'^images/(?P.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT + '/images/'})                         )