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.0

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.0
File Size Uploaded Provenance Actions
django-tools-contact-1.3.0.tar.gz 9.1 kB Without provenance Details for django-tools-contact-1.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 24.6 kB

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

Download URL django-tools-contact-1.3.0.tar.gz
Size 9.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f6df3cabbd6137741d7c1632391848810a914b33d24617497c3ca5ca0e756129
BLAKE2b-256 checksum
How to use checksums
6a70b241589e0919eb70b10b4d945dc4fb83e940fd659103f4aa64d73c9c745e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

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

Download URL django_tools_contact-1.3.0-py3-none-any.whl
Size 15.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c0bc07100e3fe4f616aa34ae8af3653717df3fb511f2df9902eb5426861651dd
BLAKE2b-256 checksum
How to use checksums
9ab7918b27c2b1bf68aed381ee900b2daeb7cd269f3f97efcf7235c6d4f02499
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

Security for django-tools-contact 1.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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