зеркало из https://github.com/mozilla/batucada.git
32 строки
1.1 KiB
Python
32 строки
1.1 KiB
Python
from django.conf import settings
|
|
from django.conf.urls.defaults import *
|
|
|
|
from django.contrib import admin
|
|
admin.autodiscover()
|
|
|
|
urlpatterns = patterns('',
|
|
(r'^admin/', include(admin.site.urls)),
|
|
(r'', include('drumbeat.urls')),
|
|
(r'', include('dashboard.urls')),
|
|
(r'', include('wellknown.urls')),
|
|
(r'', include('activity.urls')),
|
|
(r'^statuses/', include('statuses.urls')),
|
|
(r'^projects/', include('projects.urls')),
|
|
(r'^events/', include('events.urls')),
|
|
(r'^relationships/', include('relationships.urls')),
|
|
(r'^messages/', include('drumbeatmail.urls')),
|
|
(r'^account/', include('preferences.urls')),
|
|
(r'^pubsub/', include('django_push.subscriber.urls')),
|
|
(r'', include('users.urls')),
|
|
)
|
|
|
|
#if settings.DEBUG:
|
|
media_url = settings.MEDIA_URL.lstrip('/').rstrip('/')
|
|
urlpatterns += patterns('',
|
|
(r'^%s/(?P<path>.*)$' % media_url, 'django.views.static.serve',
|
|
{ 'document_root': settings.MEDIA_ROOT }
|
|
),
|
|
)
|
|
|
|
handler500 = 'drumbeat.views.server_error'
|