urls.py @ ae2856e8f8dc

Split the projects by type really fast.  This can be done better.
author Steve Losh <steve@stevelosh.com>
date Fri, 21 Aug 2009 18:29:07 -0400
parents a3380ed37242
children (none)
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'^rss/', include('stevelosh.rss.urls')),
    url(r'^mb/', include('stevelosh.messengerbag.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'