summaryrefslogtreecommitdiff
path: root/website/context_processors.py
diff options
context:
space:
mode:
authorkomalsheth2862016-09-20 17:29:09 +0530
committerkomalsheth2862016-09-20 17:29:09 +0530
commit170d96914f0226118a9d1a46ec55973b91c7bdf2 (patch)
tree8fb14a11591df9aaebebd3b77b08508a5bf77a9a /website/context_processors.py
parentfe4cae16b848c9aa24f71b7a0c3947090c985bfe (diff)
downloadSciPy2016-170d96914f0226118a9d1a46ec55973b91c7bdf2.tar.gz
SciPy2016-170d96914f0226118a9d1a46ec55973b91c7bdf2.tar.bz2
SciPy2016-170d96914f0226118a9d1a46ec55973b91c7bdf2.zip
New Commit
Diffstat (limited to 'website/context_processors.py')
-rw-r--r--website/context_processors.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/website/context_processors.py b/website/context_processors.py
new file mode 100644
index 0000000..acd6cdc
--- /dev/null
+++ b/website/context_processors.py
@@ -0,0 +1,9 @@
+from website.forms import ContactForm
+from django.core.urlresolvers import reverse
+
+
+def contact_us_context_processor(request):
+ return {
+ 'contact_form': ContactForm(),
+ 'contact_form_url': reverse("website:contact_us", args=(request.path))
+ } \ No newline at end of file