Source

pyconfr / urls.py

Full commit
from django.conf import settings
from django.conf.urls.defaults import *
from django.http import HttpResponsePermanentRedirect

urlpatterns = patterns('views',
    url(r'^$', 'pyconfr', name='pyconfr'),
    url(r'^favicon.ico$', lambda _:
        HttpResponsePermanentRedirect('%sfavicon.ico' % settings.MEDIA_URL)),
)

if settings.DEBUG:
    urlpatterns += patterns('django.views.static',
        (r'^static/(?P<path>.*)$', 'serve',
            {'document_root': settings.MEDIA_ROOT}),
    )