Source

noodle-bucket / urls.py

from django.conf.urls.defaults import *
from django.conf import settings
from noodlebucket.admin import admin

urlpatterns = patterns('',
    url(r'^admin/', include(admin.site.urls)),
    url(r'^grappelli/', include('grappelli.urls')),
    url(r'^feedback/', include('noodlebucket.feedback.urls')),
)

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