summaryrefslogtreecommitdiff
path: root/app/figments/urls.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2015-10-31 21:39:17 -0400
committerluxagraf <sng@luxagraf.net>2015-10-31 21:39:17 -0400
commite8d1fa3f47f8520618bd83dd917c569c83f2de86 (patch)
tree4ceeb0e0fb540e4161315b8cc114be5897f3f643 /app/figments/urls.py
parentc6a87562e6bd9b745dceb09b8c0b076137f46ba6 (diff)
added figments app for publishing fiction
Diffstat (limited to 'app/figments/urls.py')
-rw-r--r--app/figments/urls.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/figments/urls.py b/app/figments/urls.py
new file mode 100644
index 0000000..7dfa328
--- /dev/null
+++ b/app/figments/urls.py
@@ -0,0 +1,15 @@
+from django.conf.urls import *
+from django.views.generic import ListView, DetailView
+
+from .models import Figment, Series
+
+urlpatterns = patterns('',
+ url(r'^(?P<slug>[-\w]+)/$', DetailView.as_view(
+ model=Figment,
+ template_name="details/figments.html"
+ )),
+ url(r'^$', ListView.as_view(
+ queryset=Figment.objects.filter(status__exact=1).order_by('-pub_date'),
+ template_name="archives/figments.html",
+ )),
+)