Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

A very simple Contact Form for django

Project Description
indeed_contactForm will store messages sent with it in your database,
make them avaliable in the admin interface and send you an email with
the messages content.
For this to work you need to configure your django project to be able to
send emails.


simply use indeed_contactForm in a view like this:


from indeed_contactForm.views import contact as contactForm

def contact(request):
return contactForm(request, 'contact.html')

if you need to make some variables in the template avaliable, you can
simply pass contact() a dict like you would pass it to render_to_response.

def contact(request):
return contactForm(request, 'contact.html', {'myVar':42})


contact.html can contain a normal form, for example:

{% extends "whatever/base.html" %}

{% block content %}
{% if form.errors %}
<p style="color: red;">
Please correct the error{{ form.errors|pluralize }} below.
</p>
{% endif %}

<form action="" method="post">{% csrf_token %}
<table>
{{ form.as_table }}
</table>
<input type="submit" value="Absenden">
</form>
{% endblock %}
Release History

Release History

This version
History Node

1.0.2

History Node

1.0.1

History Node

1.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
indeed_contactForm-1.0.2.tar.gz (3.2 kB) Copy SHA256 Checksum SHA256 Source Jan 6, 2011

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting