Source

djangocong_2011 / urls.py

Full commit
David Paccoud 09f51a5 

















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

admin.autodiscover()

urlpatterns = patterns('',
    (r'^admin/', include(admin.site.urls)),
    (r'^comments/', include('basic.comments.urls')),
    (r'^', include('basic.blog.urls')),
)

if settings.DEBUG:
    urlpatterns += patterns('django.views.static',
        (r'^%s/(?P<path>.*)$' % settings.MEDIA_URL[1:-1], 'serve', {
            'document_root': settings.MEDIA_ROOT,
            'show_indexes': True
        }),
    )