Django Contact Widget
A simple contact form widget for Django.
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 migrate
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" %}