From fc5ad68e62bd2b82450cdbdd3c83f8c1e94feed2 Mon Sep 17 00:00:00 2001 From: Mike Crute Date: Tue, 4 Dec 2012 15:50:42 -0500 Subject: Add contact form --- codemash/settings.py | 8 ++++++++ codemash/urls.py | 3 +-- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'codemash') diff --git a/codemash/settings.py b/codemash/settings.py index 3bf0f6a..23b1b93 100644 --- a/codemash/settings.py +++ b/codemash/settings.py @@ -114,6 +114,12 @@ TEMPLATE_DIRS = ( os.path.join(PROJECT_ROOT, "templates"), ) +# The email backend to use. For possible shortcuts see django.core.mail. +# The default is to use the SMTP backend. +# Third-party backends can be specified by providing a Python path +# to a module that defines an EmailBackend class. +EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' + INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', @@ -125,6 +131,8 @@ INSTALLED_APPS = ( # 'django.contrib.admin', # Uncomment the next line to enable admin documentation: # 'django.contrib.admindocs', + + 'contact', ) # A sample logging configuration. The only tangible logging diff --git a/codemash/urls.py b/codemash/urls.py index 2fae4f3..0431c65 100644 --- a/codemash/urls.py +++ b/codemash/urls.py @@ -5,9 +5,8 @@ from django.conf.urls import patterns, include, url # admin.autodiscover() urlpatterns = patterns('', - # Examples: + (r'^contact/', include('contact.urls', namespace='contact')), url(r'^$', 'pages.views.home', name='home'), - # url(r'^codemash/', include('codemash.foo.urls')), # Uncomment the admin/doc line below to enable admin documentation: # url(r'^admin/doc/', include('django.contrib.admindocs.urls')), -- cgit v1.2.3