diff options
author | bnewbold <bnewbold@robocracy.org> | 2011-05-07 15:11:11 -0400 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2011-05-07 15:11:11 -0400 |
commit | 647feb73a2c3cbcc30244a022da04f5be3aa3346 (patch) | |
tree | 9baad9d881cefcca4ca21f7713bceb06140b40a3 /piccast/contact_form/urls.py | |
parent | 8d0cfc4a8107adf6c5f64ad8d03a0a30c92cc4c2 (diff) | |
download | piccast-647feb73a2c3cbcc30244a022da04f5be3aa3346.tar.gz piccast-647feb73a2c3cbcc30244a022da04f5be3aa3346.zip |
support contact form [WIP]
Diffstat (limited to 'piccast/contact_form/urls.py')
-rw-r--r-- | piccast/contact_form/urls.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/piccast/contact_form/urls.py b/piccast/contact_form/urls.py new file mode 100644 index 0000000..f80c27f --- /dev/null +++ b/piccast/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'), + ) |