]> gitweb.fperrin.net Git - djsite.git/blobdiff - quotes/urls.py
Initial draft of the quotes app
[djsite.git] / quotes / urls.py
diff --git a/quotes/urls.py b/quotes/urls.py
new file mode 100644 (file)
index 0000000..014b690
--- /dev/null
@@ -0,0 +1,11 @@
+from django.conf.urls import url
+
+from . import views
+
+urlpatterns = [
+    url(r'^$', views.random, name='random'),
+    url(r'^show/(?P<quote_id>[0-9]+)/$', views.onequote, name="onequote"),
+    url(r'^tag/(?P<tag_id>[0-9]+)/$', views.tags, name="tags"),
+    url(r'^author/(?P<author_id>[0-9]+)/$', views.author, name="author"),
+    url(r'^all/$', views.all, name="all"),
+]