This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Simple and painless form processing for static sites.


I have several sites hosted on AWS S3 for pennies a month… and I didn’t want to pay $20 per month (per form) for processing contact forms!

20+ domains powered by 1 Heroku app = Profit!


  • Multi site support.
  • Unlimited forms
  • Unlimited submissions
  • Spam Protection via Akismet.
  • Submit forms with AJAX.
  • REST API to manage forms.


  1. Install django-fwdform:

    pip install django-fwdform
  2. Add fwdform to INSTALLED_APPS:

  3. Sync database:

    python migrate
  4. Add fwdform.urls to your project’s urls module:

    urlpatterns = patterns(
        url(r'^', include('fwdform.urls', namespace='fwdform')),


This package requires django-cors-headers to be installed and configured correctly. When django-fwdform is installed using pip, django-cors-headers is automatically installed.

You will need to add corsheaders middleware class to MIDDLEWARE_CLASSES settings:


Note that CorsMiddleware needs to come before Django’s CommonMiddleware.

Allow CORS requests from all domains:


For more information, see

Sample Form

<form action="//<form_hash>/" method="POST">
    <input type="text" name="name" required="required"/>
    <input type="email" name="email" required="required" />
    <textarea name="message" rows="5"></textarea>
    <input type="submit" value="Send">

Special Form Inputs


By default, after submitting a form the user is shown the FwdForm “Thank You” page. You can provide an alternative URL for that page.

<input type="hidden" name="_next" value="//" />


This value is used for the email’s subject:

<input type="hidden" name="_subject" value="Contact Form" />


Add this “honeypot” field. If a value is provided, the submission will be silently ignored. The input should be hidden with CSS:

<input type="text" name="_gotcha" style="display:none;" />


Span prevention via Akismet - Spam checker backend looks for these specially named form inputs:

<input type="text" name="name" placeholder="Your Name">
<input type="email" name="email" placeholder="Your Email">
<textarea name="message" rows="5"></textarea>

Rest API

Register a form, this returns a hashid for the newly created form:

$ curl --data "name=Contact%20Form&"<site_token>/
{"hashid": "0rPGVlYZWqMRE8OebjoM1ogpmvNL23A9dxJzywQD"}

Update existing form config by passing a known hashid as a param:

$ curl --data ""<site_token>/

AJAX Submission

You can use fwdform via AJAX. This even works cross-origin.

If you’re using jQuery this can be done like so:

    url: $form.attr("action"),
    method: "POST",
    data: $form.serialize(),
    dataType: "json",
    headers: {"X-Requested-With": "XMLHttpRequest"},
Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-fwdform-0.1.0.tar.gz (15.9 kB) Copy SHA256 Checksum SHA256 Source Feb 7, 2016

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