Skip to content

platypus-creation/django-contact

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django-contact

Provides a simple to reuse contact form for users to send mails to settings.CONTACT_EMAILS which should be an array of emails.

There is an anti spamming mechanism included that prevent users from sending too many messages

Installation

Add contact to your INSTALLED_APPS

INSTALLED_APPS = (
    ...
    'contact',
    ...
)

Set CONTACT_EMAILS to the emails you want to be notified

CONTACTS_EMAILS = ['[email protected]', '[email protected]', ]

Add contact to your urls

...
url('^contacts/', include('contact.urls')),
...

Override the contact/contact.html template if necessary

Set CONTACTS_ANTI_SPAM_DELAY to the value you want, default is 10 (its the duration within which another attempt will lead to an exception)

About

Easy to reuse "contact us" page

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published