Skip to content

A simple Contact App for Django with one view for the Contact Form.

Notifications You must be signed in to change notification settings

aaronlelevier/django-contact-form

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

README

A simple Contact App for Django with one view for the Contact Form. The app stands by itself. It will send the contact email to the DEFAULT_FROM_EMAIL set in settings.py if successful and redirect the User to the Home page. Otherwise, the form will refresh showing what the User still needs to fill in, in order to send the Contact Form.

Requirements

  • Django 1.5+
  • Python 3+ (may work on Python 2.7+ but haven't tested it yet)
  • django-crispy-forms>=1.4.0

Quickstart

Make sure that you have the above requirements set. Next add the following to your settings.py file:

  • Add the App to your INSTALLED_APPS
INSTALLED_APPS += (
    'contact',
)
  • Add the App to your urls.py:
urlpatterns = patterns('',
	# other urls
    url(r'contact/', include('contact.urls', namespace='contact')),
)

Add the following to settings.py:

Your Site Name (or COMPANY_NAME as it is called in the settings) will appear in the email

COMPANY_NAME = "LearnRealSQL"

The Contact App uses Bootstrap CSS by default, so crispy-forms is set to use this CSS

CRISPY_TEMPLATE_PACK = "bootstrap3"

Email Settings

# Any email backend that you want with the following setting
DEFAULT_FROM_EMAIL = "<email_address_that_your_contact_form_will_send_from"

About

A simple Contact App for Django with one view for the Contact Form.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages