From d8e29c3ffe2aad0e7ae34a361af47ab8358db10c Mon Sep 17 00:00:00 2001 From: Keegan McAllister Date: Tue, 28 Aug 2012 15:31:32 -0400 Subject: [PATCH] Serve static files (imported from commit 143e6273d660ccc54fd1d5170e9d180e82fed5f0) --- humbug/urls.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/humbug/urls.py b/humbug/urls.py index fc3cdb5ad0..ba5b3cb91e 100644 --- a/humbug/urls.py +++ b/humbug/urls.py @@ -1,4 +1,6 @@ +from django.conf import settings from django.conf.urls import patterns, include, url +import os.path # Uncomment the next two lines to enable the admin: # from django.contrib import admin @@ -14,6 +16,8 @@ urlpatterns = patterns('', url(r'^accounts/login/', 'django.contrib.auth.views.login', {'template_name': 'zephyr/login.html'}), url(r'^accounts/logout/', 'django.contrib.auth.views.logout', {'template_name': 'zephyr/index.html'}), url(r'^accounts/register/', 'zephyr.views.register', name='register'), + url(r'^static/(?P.*)$', 'django.views.static.serve', + {'document_root': os.path.join(settings.SITE_ROOT, 'static/')}) # Uncomment the admin/doc line below to enable admin documentation: # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),