summaryrefslogtreecommitdiff
path: root/website/context_processors.py
diff options
context:
space:
mode:
authorprashantsinalkar2017-09-07 12:26:06 +0530
committerprashantsinalkar2017-09-07 12:26:06 +0530
commit9f89e398c88fa0982363d5f42e10f04dc4b58911 (patch)
treef0b8bb2d7988c21ba56d00f025d4405e2a975fb0 /website/context_processors.py
parenta545b3f01d16d6dcaebe3067a2e847df7c271a59 (diff)
downloadSciPy2017-9f89e398c88fa0982363d5f42e10f04dc4b58911.tar.gz
SciPy2017-9f89e398c88fa0982363d5f42e10f04dc4b58911.tar.bz2
SciPy2017-9f89e398c88fa0982363d5f42e10f04dc4b58911.zip
initial commit for development
Diffstat (limited to 'website/context_processors.py')
-rwxr-xr-xwebsite/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 100755
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