Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 3545bf7771
Fetching contributors…

Cannot retrieve contributors at this time

file 30 lines (23 sloc) 1.02 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
from django.conf.urls.defaults import *
from django.contrib import admin
from django.conf import settings
from django.core.urlresolvers import reverse

admin.autodiscover()

urlpatterns = patterns('',
(r'^favicon\.ico$', 'django.views.generic.simple.redirect_to', {'url': '/media/base/favicon.gif'}),
(r'^admin/doc/', include('django.contrib.admindocs.urls')),
(r'^admin/', include(admin.site.urls)),

(r'^backbone/', include('backbone.urls')),

(r'^api/backbone/', include('backbone.api_urls')),
(r'^api/notes/', include('peach.api_urls')),

(r'^accounts/profile/$', 'django.views.generic.simple.redirect_to', {'url': '/'}),
(r'^accounts/login/$', 'django.views.generic.simple.redirect_to', {'url': '/p/login/'}),

(r'^p/', include('person.urls')),
(r'^notes/', include('peach.urls')),
(r'^staff/', include('apple.urls')),
(r'^', include('banana.urls')),
)

if settings.DEBUG:
urlpatterns += patterns('',
(r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
)
Something went wrong with that request. Please try again.