Skip to main content

Django Tools Contact

Django Tools Contact is a simple Django app to manage a company contact information and contacts requests from a form

Installation

  1. Install with pip install django-tools-contact.

  2. Add djtools.contact to your INSTALLED_APPS setting like this:

INSTALLED_APPS = [
    ...
    'djtools.contact',
]
  1. Add your Google Maps API key nd your contact information in your project settings:
DJTOOLS_CONTACT_GMAPS_APIKEY = "ABCDE123"
DJTOOLS_CONTACT_SITE_DOMAIN = "www.example.com"
DJTOOLS_CONTACT_MAIL_FROM = "no-reply@example.com"
DJTOOLS_CONTACT_MAIL_TO = ["admin@example.com"]

  1. It has a dependency over django-recaptcha. Follow their instructions as well: Django ReCaptcha.

  2. You can use the ContactRequestView like this:

from djtools.contact.views import ContactRequestView


urlpatterns = [
    path('contact/', ContactRequestView.as_view(), name='contact'),
]
  1. Run python manage.py migrate to create the contact models.

  2. If you want to show the comapny contact information in the same page as the contact form you need to enable this setting DJTOOLS_CONTACT_INFO=True, then start the development server and visit http://127.0.0.1:8000/admin/ to create add the contact information (you'll need the Admin app enabled).

  3. Visit http://127.0.0.1:8000/contact/ to see the contact information and send contact requests.

References

https://github.com/pydanny/cookiecutter-djangopackage/

Metadata

Release files for django-tools-contact 1.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-tools-contact 1.3.2
File Size Uploaded
django-tools-contact-1.3.2.tar.gz 9.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-tools-contact 1.3.2
File Interpreter ABI Platform
django_tools_contact-1.3.2-py3-none-any.whl Python 3 none any Details

Total release size: 24.6 kB

Release files / django-tools-contact-1.3.2.tar.gz

Download URL django-tools-contact-1.3.2.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9c351bc7aa207c51beedd7d30b942e26e6070f4f9e80f1f0f113de8410fecedc
BLAKE2b-256 checksum
How to use checksums
d460b2871ca66cc3afa5f377a801cf366a8334af7ffa4f3ae39d50e627d69396
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8

Release files / django_tools_contact-1.3.2-py3-none-any.whl

Download URL django_tools_contact-1.3.2-py3-none-any.whl
Size 15.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
901a471d45109304bffd8207c6ecb8848729a34611236c694acee7f9d890f455
BLAKE2b-256 checksum
How to use checksums
e8940227538e5a513d6aff8dfc0130c7ed4fe524f8d43e1dc9f39d149a710c51
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8

Release history Release notifications | RSS feed

This release

1.3.2 This release

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page