Skip to content

Commit 4ede55b

Browse files
committed
Added a message to the page to display after the contact form has been successfully submitted
1 parent a2e8dc9 commit 4ede55b

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

pythonkc_site/settings.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,16 @@
121121
'pythonkc_site.contact',
122122
)
123123

124+
TEMPLATE_CONTEXT_PROCESSORS = (
125+
"django.contrib.auth.context_processors.auth",
126+
"django.core.context_processors.debug",
127+
"django.core.context_processors.i18n",
128+
"django.core.context_processors.media",
129+
"django.core.context_processors.static",
130+
"django.contrib.messages.context_processors.messages",
131+
"django.core.context_processors.request",
132+
)
133+
124134
# A sample logging configuration. The only tangible logging
125135
# performed by this configuration is to send an email to
126136
# the site admins on every HTTP 500 error.

pythonkc_site/static/screen.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,3 +329,13 @@ section.resources{
329329
background-color: #1B82B3;
330330
color: #87CDED;
331331
}
332+
333+
.contact-sent {
334+
position: absolute;
335+
top: 0;
336+
left: 0;
337+
right: 0;
338+
height: 20px;
339+
background-color: #EEE;
340+
text-align: center;
341+
}

pythonkc_site/templates/index.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,15 @@
1414
</head>
1515
<body>
1616
<header role="banner"></header>
17-
17+
18+
{% if request.GET.contact_sent == 'yes' %}
19+
<span class="contact-sent">
20+
Thanks for dropping us a note! We look forward to getting in touch
21+
with you. In the meantime, consider joining our little group or
22+
RSVP'ing for our next event to see what we're all about!
23+
</span>
24+
{% endif %}
25+
1826
<section class="next-meeting">
1927
<div class="wrap">
2028
<article>

0 commit comments

Comments
 (0)