urls.py @ 677d5ff5c56e

Pretty much done with the photo blog.
author Steve Losh <steve@stevelosh.com>
date Sun, 15 Feb 2009 00:34:21 -0500
parents 444fa384fab8
children 8d75ea2ae6de
from django.conf.urls.defaults import *
from django.contrib import admin
from django.conf import settings
import mobileadmin

admin.autodiscover()
mobileadmin.autoregister()

urlpatterns = patterns('',
    (r'^admin/(.*)', admin.site.root),
    (r'^m/(.*)', mobileadmin.sites.site.root),
    url(r'^blog/', include('stevelosh.blog.urls')),
    url(r'^projects/', include('stevelosh.projects.urls')),
    url(r'^thoughts/', include('stevelosh.thoughts.urls')),
    url(r'^photoblog/', include('stevelosh.photoblog.urls')),
    url(r'^rss/', include('stevelosh.rss.urls')),
)

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

handler404 = 'mobileadmin.views.page_not_found'
handler500 = 'mobileadmin.views.server_error'