{ "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
/\" method=\"POST\">\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//\n {\"hashid\": \"0rPGVlYZWqMRE8OebjoM1ogpmvNL23A9dxJzywQD\"}\n\nUpdate existing form config by passing a known ``hashid`` as a param::\n\n $ curl --data \"recipients=hello@example.com&hashid=0rPGVlYZWqMRE8OebjoM1ogpmvNL23A9dxJzywQD\" http://example.com//\n\n\nAJAX Submission\n---------------\n\nYou can use fwdform via AJAX. This even works cross-origin.\n\nIf you're using jQuery this can be done like so::\n\n $.ajax({\n url: $form.attr(\"action\"),\n method: \"POST\",\n data: $form.serialize(),\n dataType: \"json\",\n headers: {\"X-Requested-With\": \"XMLHttpRequest\"},\n });", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mishbahr/django-fwdform", "keywords": "django-fwdform", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "django-fwdform", "package_url": "https://pypi.org/project/django-fwdform/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-fwdform/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/mishbahr/django-fwdform" }, "release_url": "https://pypi.org/project/django-fwdform/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "Simple and painless form processing for static sites.", "version": "0.1.0" }, "last_serial": 1943751, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "49d9c464a5debf3ba8890bbd44031296", "sha256": "c4b7609c43f651879c6079803c9de4a74a2e7a05e743c8ef90909228d8dd9f38" }, "downloads": -1, "filename": "django-fwdform-0.1.0.tar.gz", "has_sig": false, "md5_digest": "49d9c464a5debf3ba8890bbd44031296", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15936, "upload_time": "2016-02-07T02:15:02", "url": "https://files.pythonhosted.org/packages/ca/2d/0fffba30e26812b5190c23d2b63d8bd532ec63e1e5593752c04fad7d4b61/django-fwdform-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "49d9c464a5debf3ba8890bbd44031296", "sha256": "c4b7609c43f651879c6079803c9de4a74a2e7a05e743c8ef90909228d8dd9f38" }, "downloads": -1, "filename": "django-fwdform-0.1.0.tar.gz", "has_sig": false, "md5_digest": "49d9c464a5debf3ba8890bbd44031296", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15936, "upload_time": "2016-02-07T02:15:02", "url": "https://files.pythonhosted.org/packages/ca/2d/0fffba30e26812b5190c23d2b63d8bd532ec63e1e5593752c04fad7d4b61/django-fwdform-0.1.0.tar.gz" } ] }