Django app to manage simple contact form On Django >= 3 projects.
Detailed documentation is in the "docs" directory.
- Install the app using pip
pip install django-contactform
- Add 'contactform' to your INSTALLED_APPS settings like this
INSTALLED_APPS = [
...
'contactform',
]
- Configure the recipients of your form in your settings
CONTACTFORM_RECIPIENTS = ['[email protected]']
- Include the contactform URLconf in your project urls.py like
path('contact/', include('contactform.urls')),
- Add a form to your page using the contact_form template tag
{% load contact_form %}
{% contact_form %}