Got a working photoblog (almost).
author |
Steve Losh <steve@stevelosh.com> |
date |
Sat, 14 Feb 2009 12:39:39 -0500 |
parents |
315df6ca542d |
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'