A simple Django app to manage company contact information.
Project description
Django Tools Contact
Django Tools Contact is a simple Django app to manage a company contact information and contacts requests from a form
Installation
-
Install with pip install
django-tools-contact. -
Add
djtools.contactto your INSTALLED_APPS setting like this:
INSTALLED_APPS = [
...
'djtools.contact',
]
- 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"]
-
It has a dependency over
django-recaptcha. Follow their instructions as well: Django ReCaptcha. -
You can use the
ContactRequestViewlike this:
from djtools.contact.views import ContactRequestView
urlpatterns = [
path('contact/', ContactRequestView.as_view(), name='contact'),
]
-
Run
python manage.py migrateto create the contact models. -
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). -
Visit http://127.0.0.1:8000/contact/ to see the contact information and send contact requests.
References
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django-tools-contact-1.3.2.tar.gz.
File metadata
- Download URL: django-tools-contact-1.3.2.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c351bc7aa207c51beedd7d30b942e26e6070f4f9e80f1f0f113de8410fecedc
|
|
| MD5 |
a2eed524b5ad0632adb80aa185813fb1
|
|
| BLAKE2b-256 |
d460b2871ca66cc3afa5f377a801cf366a8334af7ffa4f3ae39d50e627d69396
|
File details
Details for the file django_tools_contact-1.3.2-py3-none-any.whl.
File metadata
- Download URL: django_tools_contact-1.3.2-py3-none-any.whl
- Upload date:
- Size: 15.6 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
901a471d45109304bffd8207c6ecb8848729a34611236c694acee7f9d890f455
|
|
| MD5 |
0a1aa3d9f8b2fded053189a2fa10b6d1
|
|
| BLAKE2b-256 |
e8940227538e5a513d6aff8dfc0130c7ed4fe524f8d43e1dc9f39d149a710c51
|