Source

lindyjam / urls.py

Full commit
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


admin.autodiscover()
mobileadmin.autoregister()

feeds = {
    'blog-entries': LatestBlogEntries,
    'blog-comments': LatestBlogComments,
    'links': LatestLinks,
}

urlpatterns = patterns('',
    url(r'^admin/(.*)', admin.site.root),
    url(r'^m/(.*)', mobileadmin.sites.site.root),
    url(r'^$', 'lindyjam.splash.views.index'), 
    url(r'^blog/', include('lindyjam.blog.urls')),
    url(r'^links/$', 'lindyjam.links.views.index'),
    url(r'^links/submit/$', 'lindyjam.links.views.submit'),
    url(r'^schedule/$', 'lindyjam.djschedule.views.index'),
    url(r'^schedule/signup/$', 'lindyjam.djschedule.views.signup'),
    url(r'^quotes/$', 'lindyjam.quotes.views.index'),
    url(r'^quotes/submit/$', 'lindyjam.quotes.views.submit'),
    url(r'^playlists/$', 'lindyjam.playlists.views.index'),
    url(r'^playlists/(\d+)/(\d+)/(\d+)/(.+)$',
         'lindyjam.playlists.views.single_playlist'),
    url(r'^rss/(?P<url>.+)/$', 'django.contrib.syndication.views.feed',
        { 'feed_dict': feeds } ),
)

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'