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 is tested with Django ≥ 1.8.

  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 += [
        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 three blocks: title, extrahead and content, as shown in this example, and you must be using the staticfiles contrib app.

If these conditions are inconvenient, you can override the contact/form.html and contact/thanks.html templates.

Changelog

1.2

  • Responsive CSS layout.

1.1

  • Update for Django 1.8 and later.

1.0

  • Stable release.

0.3

  • Refactored tests for Django 1.6.

0.2

  • Bundled stylesheet.

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-1.2.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

myks_contact-1.2-py2.py3-none-any.whl (11.6 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for myks-contact-1.2.tar.gz
Algorithm Hash digest
SHA256 5e8f2f1ca7ce689a4be931c2eae1d1f8e410e71db4ec7d4f03fdd4c9650f34a4
MD5 2442dcc0beadbafd0deb6295b69aa56b
BLAKE2b-256 ebcfc934d4498c1fcbd89586970d4049d02bff85c768dcbdafe992d6759e41ba

See more details on using hashes here.

File details

Details for the file myks_contact-1.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for myks_contact-1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a5c0d8ab6789f513c422b84eb64b489f2307e21e4114d8ede97dce181a05ea4d
MD5 422f8392e87e8d9a100ca1ece4384462
BLAKE2b-256 b5b20cf7dcdba78321d4a5207841c89a55f6ebab75a74899667b6245de385636

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