Metadata-Version: 1.1
Name: django-contactform
Version: 0.1
Summary: Django Contact Form Application
Home-page: https://github.com/geelweb/geelweb-django-contactform
Author: Guillaume Luchet
Author-email: <guillaume@geelweb.org>
License: MIT
Download-URL: https://github.com/geelweb/geelweb-django-contactform/tarball/0.1
Description: Django ContactForm Application
        ==============================
        
        Demo
        ----
        
        A demo is available `here <http://django-sandbox.geelweb.org/contact>`__
        
        Installation
        ------------
        
        From PyPI
        
        ::
        
            pip install django-contactform
        
        From Source:
        
        ::
        
            python setup.py install
        
        Configuration
        -------------
        
        settings.py
        ~~~~~~~~~~~
        
        Edit your settings.py file and add the following line into your
        INSTALLED\_APPS
        
        ::
        
            'geelweb.django.contactform'
        
        Then define the following configuration properties
        
        ::
        
            CONTACTFORM_RECIPIENTS = [
                'yourname@example.com',
                'anotherperson@example.com'
                ]
        
            CONTACTFORM_SUBJECT_PREFIX = 'mail from contactform'
        
        urls.py
        ~~~~~~~
        
        Edit your urls.py and add the following line
        
        ::
        
            url(r'^contact$', 'geelweb.django.contactform.views.contact', name='contact'),
        
        templates
        ~~~~~~~~~
        
        Create a contactform/contact.html template
        
        ::
        
            <form action="{% url contact %}" method="post">
                {% csrf_token %}
                {{ form.as_p }}
                <input type="submit" value="Submit" />
            </form>
        
        Then a contactform/thanks.html template
        
        ::
        
            <h1>Thanks for your message</h1>
            <div>Your message has been sent, we'll try to answer you as quickly as possible.</div>
        
        django.core.mail
        ~~~~~~~~~~~~~~~~
        
        Finaly check you configured django.core.mail
        https://docs.djangoproject.com/en/dev/topics/email/
        
Keywords: django,contact,form
Platform: UNKNOWN
