aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/grep
AgeCommit message (Expand)Author
2009-03-17rename packages/ to recipes/ per earlier agreementDenys Dmytriyenko
alue='ChenQi/rpcbind-systemd'>ChenQi/rpcbind-systemd OpenEmbedded Core user contribution treesGrokmirror user
summaryrefslogtreecommitdiffstats
path: root/rrs/urls.py
blob: 8403ebb3381cb0ccb2be3787d1444a0d31aaaaba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from django.conf.urls import patterns, include, url

from rrs.models import Milestone
from rrs.views import RecipeListView, RecipeDetailView

urlpatterns = patterns('',
    url(r'^$', redirect_to, {'url' : reverse_lazy('recipes', args=(Milestone.get_current().name,))},
        name='frontpage'),
    url(r'^recipes/(?P<milestone_name>.*)/$',
        RecipeListView.as_view(
            template_name='rrs/recipes.html'),
        name='recipes'),
    url(r'^recipedetail/(?P<pk>\d+)/$',
        RecipeDetailView.as_view(
            template_name='rrs/recipedetail.html'),
        name='recipedetail'),
)