diff options
Diffstat (limited to 'app/unused_apps/projects/urls.py')
-rw-r--r-- | app/unused_apps/projects/urls.py | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/app/unused_apps/projects/urls.py b/app/unused_apps/projects/urls.py new file mode 100644 index 0000000..8e56b16 --- /dev/null +++ b/app/unused_apps/projects/urls.py @@ -0,0 +1,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", + ) + ), +] |