{ "info": { "author": "Byron Ruth", "author_email": "b@devel.io", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Internet :: WWW/HTTP" ], "description": "# django-support-form\n\n[![Build Status](https://travis-ci.org/cbmi/django-support-form.png?branch=master)](https://travis-ci.org/cbmi/django-support-form)\n[![Coverage Status](https://coveralls.io/repos/cbmi/django-support-form/badge.png?branch=master)](https://coveralls.io/r/cbmi/django-support-form?branch=master)\n\nSimple contact/support form for Django apps.\n\n## Install\n\n```bash\npip install django-support-form\n```\n\n## Setup\n\nAdd `supportform` to `INSTALLED_APPS` along with the following Django contrib apps:\n\n```python\nINSTALLED_APPS = (\n 'supportform',\n ...\n)\n```\n\nInclude the `supportform.urls` in the the `ROOT_URLCONF`:\n\n```python\nfrom django.conf.urls import url, patterns, include\n\nurlpatterns = patterns('',\n url(r'^support/', include('supportform.urls')),\n ...\n)\n```\n\n## Settings\n\n- `SUPPORT_EMAIL` - The recipient email address the support email will be sent to, e.g. 'support@example.com'. Default is `DEFAULT_FROM_EMAIL` Django setting.\n- `SUPPORT_EMAIL_SUBJECT` - Default email subject prepopulated in the support form. Default is 'Support Message'.\n- `SUPPORT_WAIT_SEND` - Wait until the email successfully sends. If set to false, the email will be sent in the background (via a thread). Default `True`\n\n## Templates\n\nThe templates that come with the django-supportform are functional, but _very_ minimal:\n\n- `supportform/form.html` - Renders the support form omitting the email field is the user is logged in. On submission if the email fails to send, a fallback message will be display to send an email directly to `SUPPORT_EMAIL`.\n - Context received:\n - `form` - `SupportForm` instance\n- `supportform/success.html` - Renders a static success/thank you page. This is the page redirected to after successfully sending a message.\n - Context received: (none)\n\nAn email template is also provided and can be customized as well:\n\n- `supportform/email_body.txt`\n - Context recieved:\n - `message` - Left by the user\n - `request` - Request object\n - `user` - If the message was left by an authenticated user\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/cbmi/django-support-form/", "keywords": "support contact form", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "django-support-form", "package_url": "https://pypi.org/project/django-support-form/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-support-form/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/cbmi/django-support-form/" }, "release_url": "https://pypi.org/project/django-support-form/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "Simple support/contact form for your Django app", "version": "0.1.0" }, "last_serial": 863099, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "1f797e6ece9126aa631eaa447f365396", "sha256": "ff787ac2ea1be05d4b47cc0aea365027f9dd55fb8ef9a57571d4a7acf8cc4059" }, "downloads": -1, "filename": "django-support-form-0.1.0.tar.gz", "has_sig": false, "md5_digest": "1f797e6ece9126aa631eaa447f365396", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5024, "upload_time": "2013-09-11T21:01:13", "url": "https://files.pythonhosted.org/packages/fb/dd/b8c865f939dbd74d0962e2f270b66baa4890a8b064538f72d5bc0ad44905/django-support-form-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1f797e6ece9126aa631eaa447f365396", "sha256": "ff787ac2ea1be05d4b47cc0aea365027f9dd55fb8ef9a57571d4a7acf8cc4059" }, "downloads": -1, "filename": "django-support-form-0.1.0.tar.gz", "has_sig": false, "md5_digest": "1f797e6ece9126aa631eaa447f365396", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5024, "upload_time": "2013-09-11T21:01:13", "url": "https://files.pythonhosted.org/packages/fb/dd/b8c865f939dbd74d0962e2f270b66baa4890a8b064538f72d5bc0ad44905/django-support-form-0.1.0.tar.gz" } ] }