urls.py @ 80a83fa13e59

Fixing the ampersand color in links.
author Steve Losh <steve@stevelosh.com>
date Wed, 11 Mar 2009 19:01:29 -0400
parents 79be9c82637b
children a3380ed37242
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'^photoblog/', include('stevelosh.photoblog.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'