Django Contact Form Package
Project description
Django Contact Widget
.. image:: https://img.shields.io/badge/license-MIT-blue.svg?maxAge=2592000 :target: https://raw.githubusercontent.com/sajib1066/django-contactforms/master/LICENSE
.. image:: https://img.shields.io/pypi/pyversions/Django.svg?maxAge=2592000 :target: https://github.com/sajib1066/django-contactforms
A simple contact form widget for Django.
.. image:: https://i.imgur.com/vUl0WsT.png
Install
Django Contact Us is available directly from PyPI
_:
::
$ pip install django-contactforms
*). And don't forget to add contact_forms
to your INSTALLED_APPS
.
Requirement
Django>=3
Database Migration
::
$ ./manage.py makemigrations contact_forms
$ ./manage.py migrate contact_forms
URL configuration
The easiest way to set up the views in django-contactforms
is to just use the provided URLconf
, found at contact_forms.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.urls import path, include
urlpatterns = [
# ....
path('contact/', include('contact_forms.urls')),
]
Usage
Include the template from contact/contact.html
to your sidebar for example.
::
{% include "contact/contact.html" %}
License
MIT
_
.. _PyPI: https://pypi.python.org/pypi/django-contactforms .. _MIT: https://github.com/sajib1066/django-contactforms/blob/master/LICENSE
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for django_contactforms-1.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 852ee0f93fcd1be0270abc644a088568f7e66612d2762bb0e4206ce86e8d5455 |
|
MD5 | fc48afe886431b3c240724fddbf1b831 |
|
BLAKE2b-256 | c630323b482c4337be9c4ef3a0bca5f66b03743eb64383289f92172b3b7c9dc1 |