lindyjam / urls.py

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', name='splash-page'), 
    url(r'^blog/',      include('lindyjam.blog.urls')),
    url(r'^schedule/',  include('lindyjam.djschedule.urls')),
    url(r'^links/',     include('lindyjam.links.urls')),
    url(r'^quotes/',    include('lindyjam.quotes.urls')),
    url(r'^playlists/', include('lindyjam.playlists.urls')),
    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'
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.