summaryrefslogtreecommitdiff
path: root/app/projects/urls.py
blob: f826624d8f0a0f48e93f033886f3f977cfccf6f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from django.conf.urls import *
from django.views.generic import ListView
from projects.models.base import Project


urlpatterns = patterns('',
    (r'data/(?P<id>\d+)/$', 'projects.views.data_json'),
    (r'gifs/(?P<slug>[-\w]+)/$', 'projects.views.gif_detail'),
    (r'(?P<slug>[-\w]+)/$', 'projects.views.detail'),
    (r'^$', ListView.as_view(
        queryset=Project.objects.filter(status__exact=1).order_by('-pub_date'),
        template_name="archives/projects.html",
    )),
)