Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

A simple contact form widget for Django

Project description

A simple contact form widget for Django.


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.


  • Django>=1.10.1

Database Migration

$ ./ makemigrations contact_widget
$ ./ migrate contact_widget

Setting Configuration

Email Configuration in file of

EMAIL_HOST = ''  # eg: ''
EMAIL_HOST_PASSWORD = 'your_password'
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')),


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

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


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-contact-widget, version 1.0.3
Filename, size File type Python version Upload date Hashes
Filename, size django-contact-widget-1.0.3.tar.gz (4.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page