Move variables in check_job_status to prevent undeclared error
[ganeti_webmgr.git] / muddle / urls.py
blob67992e3f4e1779b9ec688f3365c9cd183c804de8
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})