Skip to main content

Minified JQuery & Ajax feedback form to handle fast customer requests in Django

Project description

Django Feedback Form
====================

Minified JQuery & Ajax feedback form to handle fast customer requests in Django

Prerequisites
-------------

You need at least the following packages in your virtualenv:

* Django 1.4
* Django Mailer
* Django Libs
* South


Installation
------------

To get the latest stable release from PyPi::

$ pip install django-feedback-form

To get the latest commit from GitHub::

$ pip install -e git://github.com/bitmazk/django-feedback-form.git#egg=feedback_form

Add the app to your ``INSTALLED_APPS``::

INSTALLED_APPS = [
...
'django',
'mailer',
'feedback_form',
]

Run the south migrations to create the app's database tables::

$ ./manage.py migrate feedback_form


Usage
-----

First of all add the feedback urls to your main urls.py::

url(r'^feedback/', include('feedback_form.urls')),

You can use the "normal" feedback view via ``/feedback/`` but in almost every
case you might want to use the ajax template tag. Just add the following code
to e.g. your base.html::

{% load feedback_tags %}
{% feedback_form %}

Pretty ugly, eh? Now, you need to add css and js for sure, like this::

<link href="{{ STATIC_URL }}feedback_form/css/feedback_form.css" type="text/css" media="all" rel="stylesheet" />
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}feedback_form/js/feedback_form.js"></script>

That's it!
You can easily customize your form by changing static files or by changing the
following ``settings``:

__FEEDBACK_FORM_TEXTCOLOR__

By default the text color is white like ``'#fff'``.

***

__FEEDBACK_FORM_COLOR__

By default the background color is light blue like ``'#6caec9'``.

***

__FEEDBACK_FORM_TEXT__

By default the text in the form is invisible. Just add the html markup you want
to be displayed above the input fields, like::

<h3>Hi! Do you have feedback or questions?</h3>
<p>We'll answer as fast as possible.</p>


Roadmap
-------

See the issue tracker for current and upcoming features.

Project details


Download files

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

Source Distribution

django-feedback-form-0.1.tar.gz (19.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page