kitsune/apps/dashboards/urls.py

21 строка
893 B
Python

from django.conf.urls.defaults import patterns, url
from sumo.views import redirect_to
urlpatterns = patterns('dashboards.views',
url(r'^dashboard$', redirect_to, {'url': 'dashboards.review'},
name='dashboards.default'),
url(r'^dashboard/forums$', 'review', name='dashboards.review'),
url(r'^dashboard/(?P<group_id>\d+)$', 'group_dashboard',
name='dashboards.group'),
url(r'^localization$', 'localization', name='dashboards.localization'),
url(r'^contributors$', 'contributors', name='dashboards.contributors'),
url(r'^wiki-rows/(?P<readout_slug>[^/]+)', 'wiki_rows',
name='dashboards.wiki_rows'),
url(r'^localization/(?P<readout_slug>[^/]+)', 'localization_detail',
name='dashboards.localization_detail'),
url(r'^contributors/(?P<readout_slug>[^/]+)', 'contributors_detail',
name='dashboards.contributors_detail'),
)