{ "info": { "author": "Mishbah Razzaque", "author_email": "mishbahx@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Framework :: Django", "Framework :: Django :: 1.7", "Framework :: Django :: 1.8", "Framework :: Django :: 1.9", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "=============================\ndjango-fwdform\n=============================\n\n.. image:: http://img.shields.io/travis/mishbahr/django-fwdform.svg?style=flat-square\n :target: https://travis-ci.org/mishbahr/django-fwdform/\n\n.. image:: http://img.shields.io/pypi/v/django-fwdform.svg?style=flat-square\n :target: https://pypi.python.org/pypi/django-fwdform/\n :alt: Latest Version\n\n.. image:: http://img.shields.io/pypi/dm/django-fwdform.svg?style=flat-square\n :target: https://pypi.python.org/pypi/django-fwdform/\n :alt: Downloads\n\n.. image:: http://img.shields.io/pypi/l/django-fwdform.svg?style=flat-square\n :target: https://pypi.python.org/pypi/django-fwdform/\n :alt: License\n\n.. image:: http://img.shields.io/coveralls/mishbahr/django-fwdform.svg?style=flat-square\n :target: https://coveralls.io/r/mishbahr/django-fwdform?branch=master\n\nSimple and painless form processing for static sites.\n\n\nWhy?\n----\n\nI have several sites hosted on AWS S3 for pennies a month... and I didn't want to\npay $20 per month (per form) for processing contact forms!\n\n**20+ domains powered by 1 Heroku app = Profit!**\n\n\nDemo\n----\n\nSee https://github.com/mishbahr/staticgen-fwdform\n\nFeatures\n--------\n\n* Multi site support.\n* Unlimited forms\n* Unlimited submissions\n* Spam Protection via Akismet.\n* Submit forms with AJAX.\n* REST API to manage forms.\n\n\nQuickstart\n----------\n\n1. Install ``django-fwdform``::\n\n pip install django-fwdform\n\n2. Add ``fwdform`` to ``INSTALLED_APPS``::\n\n INSTALLED_APPS = (\n ...\n 'corsheaders',\n 'fwdform',\n ...\n )\n\n3. Sync database::\n\n python manage.py migrate\n\n\n4. Add ``fwdform.urls`` to your project's urls module::\n\n urlpatterns = patterns(\n ...\n url(r'^', include('fwdform.urls', namespace='fwdform')),\n ...\n )\n\n\n\nDependencies\n------------\n\nThis package requires ``django-cors-headers`` to be installed and configured correctly. When ``django-fwdform`` is installed using pip, ``django-cors-headers`` is automatically installed.\n\nYou will need to add corsheaders middleware class to ``MIDDLEWARE_CLASSES`` settings::\n\n MIDDLEWARE_CLASSES = (\n ...\n 'corsheaders.middleware.CorsMiddleware',\n 'django.middleware.common.CommonMiddleware',\n ...\n )\n\nNote that ``CorsMiddleware`` needs to come before Django's ``CommonMiddleware``.\n\nAllow CORS requests from all domains::\n\n CORS_ORIGIN_ALLOW_ALL = True\n\nFor more information, see https://github.com/ottoyiu/django-cors-headers\n\n\nSample Form\n-----------\n\n::\n\n
\n\n\nSpecial Form Inputs\n*******************\n\n**_next**\n\nBy default, after submitting a form the user is shown the FwdForm \"Thank You\" page. You can provide an alternative URL for that page. ::\n\n \n\n\n**_subject**\n\nThis value is used for the email's subject::\n\n \n\n**_gotcha**\n\nAdd this \"honeypot\" field. If a value is provided, the submission will be silently ignored. The input should be hidden with CSS::\n\n \n\n**name/email/message**\n\nSpan prevention via Akismet - Spam checker backend looks for these specially named form inputs::\n\n \n \n \n\nRest API\n--------\n\nRegister a form, this returns a hashid for the newly created form::\n\n $ curl --data \"name=Contact%20Form&recipients=conttact@example.com\" http://example.com/