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',
]
```

3. 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"]

```

4. It has a dependency over `django-recaptcha`. Follow their instructions as well:
[Django ReCaptcha](https://github.com/praekelt/django-recaptcha).


5. You can use the `ContactRequestView` like this:
```
from djtools.contact.views import ContactRequestView


urlpatterns = [
path('contact/', ContactRequestView.as_view(), name='contact'),
]
```

6. Run `python manage.py migrate` to create the contact models.

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

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

Built distribution (wheel)

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

Total release size: 17.6 kB

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

Download URL django-tools-contact-1.0.0.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a7ad232ec90417f0bcdf1f9ef4e68281b66eac7bc9945a37dd464f94f534838e
BLAKE2b-256 checksum
How to use checksums
e9b398b6866204b82915016e1c5b6d1e3d41a568b90e10e63d4231fdad98c424
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6

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

Download URL django_tools_contact-1.0.0-py3-none-any.whl
Size 10.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4a1c8b51037aacf7573d12ef183ff0c431f4941860befe100b065c91274ff2e9
BLAKE2b-256 checksum
How to use checksums
7f3df99b5a0da1bb1cdd8bf5627a65670002f4008640ad2333a784a62f8798b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6

Security for django-tools-contact 1.0.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