You can install django-contactform with pip

pip install django-contactform


messages framework

Ensure the Django messages framework is enabled on your project

Enable the app

  1. Add ‘contactform’ to your INSTALLED_APPS settings
  1. Configure the recipients of your form in your settings
  1. Include the contactform URLconf in your project like
path('contact/', include('contactform.urls')),
  1. Add a form to an existing page using the contact_form template tag
{% load contact_form %}

{% contact_form %}

or add a link to the contact page

<a href="{% url 'contactform:index' %}">Contact us</a>