Skip to main content

Simple contact form

Project description

Goals

myks-contact is a simple contact form. It’s adequate for a personal home page. It features a basic CAPTCHA.

Setup

myks-contact is a pluggable Django application. It works with Python >= 2.6 and Django >= 1.5.

  1. Download and install the package from PyPI:

    $ pip install myks-contact
  2. Add contact to INSTALLED_APPS:

    INSTALLED_APPS += 'contact',

    This allows Django to discover the built-in templates and translations.

  3. Define the list of recipients in the CONTACT_EMAILS setting:

    CONTACT_EMAILS = ['you@example.com']
  4. Add the application to your URLconf with the contact application namespace:

    urlpatterns += patterns('',
        url(r'^contact/', include('contact.urls', namespace='contact', app_name='contact')),
    )

To use the built-in templates, your project’s base.html template must provide two blocks: title and content, as shown in this example. You may also override the contact/form.html and contact/thanks.html templates.

Changelog

0.1

  • Initial public release, extracted from my private repository.

  • Switched the implementation to class-based generic views.

  • Added documentation (README file).

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

myks-contact-0.1.tar.gz (5.6 kB view details)

Uploaded Source

File details

Details for the file myks-contact-0.1.tar.gz.

File metadata

  • Download URL: myks-contact-0.1.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for myks-contact-0.1.tar.gz
Algorithm Hash digest
SHA256 d52e8a100249480451b6e07814cf391b5d7c10ae4471cefff42b2820d7c5c332
MD5 7e991ae69bf684fcb5f091fe722c5312
BLAKE2b-256 8a08f56efd82454e7f72aa284db39d7878e1d1550dd8953b15edfeb2460af1c0

See more details on using hashes here.

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