Commits

Steve Losh committed 5255a4b

Installed django-mobileadmin.

Comments (0)

Files changed (2)

 )
 
 TEMPLATE_CONTEXT_PROCESSORS += (
-     'django.core.context_processors.request',
+    'django.core.context_processors.request',
+    'mobileadmin.context_processors.user_agent', 
 ) 
 
 INSTALLED_APPS = (
     'lindyjam.splash',
     'lindyjam.quotes',
     'lindyjam.playlists',
+    'mobileadmin',
 )
 from django.conf.urls.defaults import *
 from django.conf import settings
+import mobileadmin
+from django.contrib import admin
 from lindyjam.blog.feeds import LatestBlogEntries, LatestBlogComments
 from lindyjam.links.feeds import LatestLinks
-from django.contrib import admin
 
 
 admin.autodiscover()
+mobileadmin.autoregister()
+
 feeds = {
     'blog-entries': LatestBlogEntries,
     'blog-comments': LatestBlogComments,
 
 urlpatterns = patterns('',
     url(r'^admin/(.*)', admin.site.root),
+    url(r'^m/(.*)', mobileadmin.sites.site.root),
     url(r'^$', 'lindyjam.splash.views.index'), 
     url(r'^blog/$', 'lindyjam.blog.views.index'),
     url(r'^blog/page/(\d+)/$', 'lindyjam.blog.views.index'),
         (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'