summaryrefslogtreecommitdiff
path: root/app/projects/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/projects/urls.py')
-rw-r--r--app/projects/urls.py34
1 files changed, 24 insertions, 10 deletions
diff --git a/app/projects/urls.py b/app/projects/urls.py
index f826624..97a7129 100644
--- a/app/projects/urls.py
+++ b/app/projects/urls.py
@@ -1,14 +1,28 @@
-from django.conf.urls import *
+from django.conf.urls import url
from django.views.generic import ListView
from projects.models.base import Project
+from . import views
-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",
- )),
-)
+
+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",
+ )
+ ),
+]