Source

django-photos / src / photos / tests / urls.py

Full commit
from photos.views import album_list, photo_list, photo_detail
from os.path import abspath, dirname, join
from django.views.generic.list_detail import object_detail
from django.conf.urls.defaults import *
from django.conf import settings
from django.contrib import admin
admin.autodiscover()

here = abspath(dirname(__file__))

urlpatterns = patterns('',
    url(r'^photos/', include('photos.urls')),
    (r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
    (r'^admin/', include(admin.site.urls))
)