Skip to main content

Django Contact Widget

https://img.shields.io/badge/license-MIT-blue.svg?maxAge=2592000 https://img.shields.io/pypi/pyversions/Django.svg?maxAge=2592000

A simple contact form widget for Django.

http://i.imgur.com/2dzKO2s.png

Install

Django Contact Widget is available directly from PyPI:

$ pip install django-contact-widget

*). And don’t forget to add contact_widget to your INSTALLED_APPS.

Requirement

  • Django>=1.10.1

Database Migration

$ ./manage.py makemigrations contact_widget
$ ./manage.py migrate contact_widget

Setting Configuration

Email Configuration in file of settings.py

EMAIL_HOST = 'smtp.gmail.com'  # eg: 'smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_HOST_USER = 'your_email@domain.com'
EMAIL_HOST_PASSWORD = 'your_password'
EMAIL_USE_TLS = True
DEFAULT_FROM_EMAIL = EMAIL_HOST_USER
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'

URL configuration

The easiest way to set up the views in django-contact-widget is to just use the provided URLconf, found at contact_widget.urls. You can include it wherever you like in your site’s URL configuration; for example, to have it live at the URL /contact/:

from django.conf.urls import include, url

urlpatterns = [
    # ....
    url(r'^contact/', include('contact_widget.urls')),
]

Usage

Include the template from contact_widget/contact.html to your sidebar for example.

{% include "contact_widget/contact.html" %}

License

Metadata

Release files for django-contact-widget 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-contact-widget 1.0.3
File Size Uploaded Provenance
django-contact-widget-1.0.3.tar.gz 4.9 kB Without provenance Details

Release files / django-contact-widget-1.0.3.tar.gz

Download URL django-contact-widget-1.0.3.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
5e4a22b82b2a80b2b88a3bfbbc3c7821b9d9a0da72e5d3dc33115d86a525a501
BLAKE2b-256 checksum
How to use checksums
d357c4729f3cded8b834d789632d5df32bc9720ae079c79529554fda3545cc37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-contact-widget 1.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page