1 from django
.conf
import settings
2 from django
.conf
.urls
.defaults
import patterns
, url
5 urlpatterns
= patterns('')
8 # The following is used to serve up local media files like images, css, js
9 # Use __file__ to find the absolute path to this file. This can be used to
10 # determine the path to the static directory which contains all the files
11 # we are trying to expose
12 static_root
= '%s/static' % __file__
[:__file__
.rfind('/')]
13 base_url_regex
= r
'^muddle_static/(?P<path>.*)$'
14 urlpatterns
+= patterns('',
15 (base_url_regex
, 'django.views.static.serve', {'document_root': static_root
})