Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 14 lines (12 sloc) 0.428 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14
"""
Mediasync can serve media locally when MEDIASYNC['SERVE_REMOTE'] == False.
The following urlpatterns are shimmed in, in that case.
"""
from django.conf.urls.defaults import *
from mediasync import backends

client = backends.client()
local_media_url = client.local_media_url.strip('/')

urlpatterns = patterns('mediasync.views',
    url(r'^%s/(?P<path>.*)$' % local_media_url, 'static_serve',
        {'client': client}),
)
Something went wrong with that request. Please try again.