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
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/
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/
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
Close
Hashes for django-tools-contact-0.0.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0c391bbdbee561f9e9f17d6aaaefd74a8bf4266d92c16a8724456a3e81f62a5 |
|
MD5 | 0268cda4025eba9a605e19f3e1ddb2de |
|
BLAKE2b-256 | 69af6ccf3f98bcd478ee83fad8464e7c97c30c01ca561f02bac14d922604f177 |
Close
Hashes for django_tools_contact-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | baeb29993b96a8d992da1cadc79dfad508596b9b456d38a7a1dd97b0816e26cb |
|
MD5 | c24ad1d65657a06ccf340d839bf6ca41 |
|
BLAKE2b-256 | 8564c36106dd9d39278f903e309fcd450b1bcc1567d4b5f510d7bc58f3b5e267 |