diff options
Diffstat (limited to 'website/context_processors.py')
-rwxr-xr-x | website/context_processors.py | 9 |
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 |