summaryrefslogtreecommitdiff
path: root/app/lib/contact_form/urls.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2012-09-22 22:27:04 -0400
committerluxagraf <sng@luxagraf.net>2012-09-22 22:27:04 -0400
commitefb623af0bcb47d510501c282e1326b11343a29c (patch)
tree3a35fb19f5eba3b219c65277a5fb712cbe9604ac /app/lib/contact_form/urls.py
parent0b481fd7931c2ae20ca21f89a87f2ba6a6c01e10 (diff)
site reorg
Diffstat (limited to 'app/lib/contact_form/urls.py')
-rw-r--r--app/lib/contact_form/urls.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/app/lib/contact_form/urls.py b/app/lib/contact_form/urls.py
new file mode 100644
index 0000000..f80c27f
--- /dev/null
+++ b/app/lib/contact_form/urls.py
@@ -0,0 +1,28 @@
+"""
+Example URLConf for a contact form.
+
+Because the ``contact_form`` view takes configurable arguments, it's
+recommended that you manually place it somewhere in your URL
+configuration with the arguments you want. If you just prefer the
+default, however, you can hang this URLConf somewhere in your URL
+hierarchy (for best results with the defaults, include it under
+``/contact/``).
+
+"""
+
+
+from django.conf.urls.defaults import *
+from django.views.generic.simple import direct_to_template
+
+from contact_form.views import contact_form
+
+
+urlpatterns = patterns('',
+ url(r'^$',
+ contact_form,
+ name='contact_form'),
+ url(r'^sent/$',
+ direct_to_template,
+ { 'template': 'contact_form/contact_form_sent.html' },
+ name='contact_form_sent'),
+ )