comparison contact/urls.py @ 1070:6ac56115e0a8

Convert contact form & views to V3.
author Brian Neal <bgneal@gmail.com>
date Sat, 09 Apr 2016 17:15:32 -0500
parents 5ba2508939f7
children
comparison
equal deleted inserted replaced
1069:ae015fcec351 1070:6ac56115e0a8
1 """urls for the contact application""" 1 """urls for the contact application"""
2 from django.conf.urls import url 2 from django.conf.urls import url
3 from django.views.generic import TemplateView
4 3
5 import contact.views 4 import contact.views
6 5
7 urlpatterns = [ 6 urlpatterns = [
8 url(r'^$', contact.views.contact_form, name='contact-form'), 7 url(r'^$', contact.views.contact_form, name='contact-form'),
9 url(r'^thanks/$', 8 url(r'^thanks/$',
10 TemplateView.as_view(template_name='contact/contact_thanks.html'), 9 contact.views.ContactThanksView.as_view(),
11 name='contact-thanks'), 10 name='contact-thanks'),
12 ] 11 ]