Updated the ignore to hide messengerbag.
author |
Steve Losh <steve@stevelosh.com> |
date |
Wed, 11 Mar 2009 17:45:21 -0400 |
parents |
8d75ea2ae6de |
children |
79be9c82637b |
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')),
)
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'