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 ≥ 2.2.

  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 += [
        path('contact/', include('contact.urls', namespace='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.5

  • Update for Django 3.0.

1.4

  • Update for Django 2.0.

1.3

  • Put sender email in Reply-To instead of From.

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

Uploaded Source

Built Distribution

myks_contact-1.5-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: myks-contact-1.5.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.0 Darwin/20.2.0

File hashes

Hashes for myks-contact-1.5.tar.gz
Algorithm Hash digest
SHA256 bdbfe65f70b89cf2417c1c970b0e921ea0a05c9ba49d47b3f8e5a10eeefda7fe
MD5 25a69162a20239bf3669d31fa0a324f3
BLAKE2b-256 bd4006a4d745a35f8b665c30190c2e314904a388d34b01ad98a4fc71a2d680c1

See more details on using hashes here.

File details

Details for the file myks_contact-1.5-py3-none-any.whl.

File metadata

  • Download URL: myks_contact-1.5-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.0 Darwin/20.2.0

File hashes

Hashes for myks_contact-1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5592cac3882e766f2216df36cee5106525c094733667f5e5d486ad691b417d0c
MD5 45efe4e435088ede55d3ade7966132f0
BLAKE2b-256 ba6526e3d8b5fec2ebe02b78ee66945c44907f6892d8d37ad7ba547b41d49349

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