blob: 8e56b1615d02e3d3245f1cbbd4c4a153ecc04abb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
from django.conf.urls import url
from django.views.generic import ListView
from projects.models.base import Project
from . import views
app_name = "project"
urlpatterns = [
url(
r'data/(?P<id>\d+)/$',
views.data_json
),
url(
r'gifs/(?P<slug>[-\w]+)/$',
views.gif_detail
),
url(
r'(?P<slug>[-\w]+)/$',
views.detail
),
url(
r'^$',
ListView.as_view(
queryset=Project.objects.filter(status__exact=1).order_by('-pub_date'),
template_name="archives/projects.html",
)
),
]
|