blob: bd7c13dc19db372c2b63ab3e9c276c075e8934f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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",
)),
)
|